Home > Contents > Index >
INDEXREMOVE
Removes an entry from an existing search index.
Syntax
<INDEXREMOVE ENTRY="ENTRY_NAME" [INDEX="INDEX_NAME"] [CHARACTERSET="CHAR_SET"] [SEARCHENGINE="NAME"]/>Parameters
ENTRY (required)- Name of the index entry to remove.
INDEX (optional)- Full path name of the index from which the
ENTRY_NAMEshould be removed. If this parameter is not specified, the value of the Content Server propertyav.defaultindexis used.
CHARACTERSET (optional)- Constant value representing the character set the index uses.
- For the AltaVista search engine this value may be
0,1, or2(ISO_LATIN1, ASCII8, UTF8). If you do not specifyCHARACTERSET, Content Server uses the value ofav.charsetin the Content Server properties file.
- Because Java Strings are transformed to UTF8, as they pass through the JNI interface to AltaVista, the 0 value only works for 7-bit ASCII. For all other cases, use the value for UTF8.
- For the Verity search engine, this value specifies the name of the subdirectory of the common directory where the locale is defined. If you do not specify
CHARACTERSET, Content Server uses the value ofverity.charsetin the Content Server properties file.
SEARCHENGINE (optional)- Name of the search engine to use. If
SEARCHENGINEis not specified, Content Server uses the value ofcs.searchenginefrom the Content Server properties file.
errno
The possible values of
errnoinclude:
Value Description -801 Cannot load search engine. -804 Remove index failed. -805 No default index specified. -806 Unknown search engine. -811 Could not call native method. -812 Index does not exist.Example
This example removes
Article 083742132from the index,c:/ArticleIdx:<SETVAR NAME="errno" VALUE="0"/> <INDEXREMOVE INDEX="c:/ArticleIdx" SEARCHENGINE="AV" ENTRY=" Article083742132"/> <IF COND="IsError.Variables.errno=true"> <THEN> <!--Handle error--> </THEN> </IF>See Also
INDEXADD
INDEXCREATE
INDEXDESTROY
Home > Contents > Index > ![]()
FatWire XML Tag Reference
Copyright 2005 by FatWire Software
All rights reserved.