Home > Contents > Index > 
Expanded TOC | Accordion TOC | Annotated TOC | Index 
ICS.IndexReplace
Replaces an existing item in the search index.
Syntax
public boolean IndexReplace(String sIndex, String sEntryName, String sEntryDetail, String sWordList, String sWordListDelimiters, String sFileList, String sDate, FTValList vlTextArguments, FTValList vlFileArguments, FTValList vlDateArguments, String sEngine, String sCharset, StringBuffer sbError)Parameters
sIndex- The name of the search index. If
 null, the default index is specified in the Content Server propertiesav.defaultindexorverity.defaultindexas appropriate.
sEntryName- Name of the index entry to add. This value is returned in the search results. The
 sEntryNamevalue must be unique within an index. ChoosesEntryNamevalues 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
 vITextArgumentsis 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 ifsWordListDelimitersis not specified.
sFileList- Comma-separated list of files to add. Note that
 vIFileArgumentsis the preferred way to add files.
sDate- Date string to add to the index entry. If no
 sDateis specified, theIndexAddtime 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
 sCharSetisnull, Content Server uses the value ofav.charsetin the properties file.
sbError- For return values; may contain error information.
 
Returns
Returns
trueon success,falseon failure.Errno
Use
GetErrno(), and see Appendix A, "Error Conditions," for the possibleerrnovalues.
Home > Contents > Index > ![]()
FatWire JAVA Reference
Copyright 2005,2006,2007 by FatWire Software
All rights reserved.