Home > Contents > Index >
Template Tags TOC | Alpha TOC | Tag Family TOC | Purpose TOC | Annotated TOC | Index
ics:indexcreate
Creates a search index.
Syntax
<ics:indexcreate index="index name" charset="character set" [searchengine="name"]/>Parameters
index (required)
- Full path name of the index to create.
searchengine (optional)
- Name of the search engine to use. If
searchengine
is not specified, Content Server uses the value ofcs.searchengine
from the Content Server properties file.
Description
The
ics:indexcreate
tag creates a search index. For AltaVista, this creates the directory where the index is stored. For Verity, however, this creates a more complex base structure for the index in the directory specified by theindex
parameter. In particular, it needs to create the structures that hold the field information for the index. Therefore, the fields that are used must be specified usingics:fieldargument
tags when the index is created.errno
The possible values of
errno
include:
Value Description -801 Cannot load search engine. -802 Unsupported search function. Content Server 3.0 and earlier returned this error; however, Content Server 3.1 and higher no longer return this error. -803 Create index failed. -805 No default index specified. -806 Unknown search engine. -811 Could not call native method. -815 Duplicate field values. (Verity only) -819 Unrecognized field type. (Verity only) -822 Index already exists.(Verity only)Example
The following example creates an AltaVista search index in the directory
c:/search/avindex
. Note that index fields are not predefined for AltaVista indexes.<ics:clearerrno/> <ics:indexcreate index="c:/search/avindex" searchengine="AV"/> <ics:if condition=<%ics.GetErrno() != 0%>'> <ics:then> Report error </ics:then> </ics:if>See Also
Home > Contents > Index > ![]()
FatWire JSP Tag Reference
Copyright 2005,2006,2007 by FatWire Software
All rights reserved.