Home > Contents > Index >
Expanded TOC | Accordion TOC | Annotated TOC | Index
ICS.IndexRemove
Removes an entry from an existing search index.
Syntax
public boolean IndexRemove(String sIndex, String sEntryName, String sEngine, String sCharset, StringBuffer sbError)Parameters
sIndex
- The name of the search index. If
null
, the default index is specified in the ContentServer propertiesav.defaultindex
orverity.defaultindex
as appropriate.
sEntryName
- The name of the entry to delete.
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 (ASCII7, ASCII8 (Not supported), or UTF8). If
sCharSet
isnull
, Content Server uses the value ofav.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 possibleerrno
values.Example
The following example removes an entry from an existing search index:
ics.ClearErrno(); StringBuffer errs = new StringBuffer(); ics.IndexRemove(null, "myEntry", null, null, errs); int indErrs = ics.GetErrno();
Home > Contents > Index > ![]()
FatWire JAVA Reference
Copyright 2005,2006,2007 by FatWire Software
All rights reserved.