Home > Contents > Index >
Expanded TOC   |    Accordion TOC   |    Annotated TOC   |    Index

 

ICS.IndexReplace

Replaces an existing item in the search index.

Syntax

Parameters

sIndex
The name of the search index. If null, the default index is specified in the Content Server properties av.defaultindex or verity.defaultindex as appropriate.

sEntryName
Name of the index entry to add. This value is returned in the search results. The sEntryName value must be unique within an index. Choose sEntryName values carefully so that the caller of the search can reference the associated article(s).

sEntryDetail
The detail string associated with entry. May be null. This value is returned in the search results.

sWordList
Words to add to the index. These are space-separated by default. Note that vITextArguments is the preferred way to add words to the index.

sWordListDelimiters
String containing delimiter characters to use to separate words in the value of vITextArguments. White space will be used as delimiter characters if sWordListDelimiters is not specified.

sFileList
Comma-separated list of files to add. Note that vIFileArguments is the preferred way to add files.

sDate
Date string to add to the index entry. If no sDate is specified, the IndexAdd time is returned in the search results. Format is in Java SQL.

vlTextArguments
The text argument names and values. May be null.

vlFileArguments
The file argument names and values. May be null.

vlDateArguments
The date argument names and values. May be null.

sEngine
Search engine name. If null, the value of the Content Server property, cs.searchengine, is used.

sCharset
Constant value representing the character set the index uses. For the AltaVista search engine, this value can be 0, 1, or 2 (ISO_LATIN1, ASCII8, or UTF8). If sCharSet is null, Content Server uses the value of av.charset in the properties file.

sbError
For return values; may contain error information.

Returns

Returns true on success, false on failure.

Errno

Use GetErrno (), and see Appendix A, "Error Conditions," for the possible errno values.

 

  Home > Contents > Index >

FatWire JAVA Reference
Copyright 2005 by FatWire Software
All rights reserved.