Home > Contents > Index >
Template Tags TOC   |    Alpha TOC   |    Tag Family TOC   |    Purpose TOC   |    Annotated TOC   |    Index 

 

ics:indexcreate

Creates a search index.

Syntax

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 of cs.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 the index 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 using ics: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.

See Also

ics:indexdestroy

ics:indexexists

ics:fieldargument

  Home > Contents > Index >

FatWire JSP Tag Reference
Copyright 2005 by FatWire Software
All rights reserved.