Function EN Version 4.50

@FTIndex

Fulltext

Syntax

@FTIndex(DBHANDLE1;FN2);
@FTIndex(DBHANDLE1;FN2;OSPATH3);

Description

Indexes the DB with the DBHANDLE DBHANDLE1, taking into account the options specified under FN FN2.
(At present, only databases located locally on the server can be indexed.)
In TEXT OSPATH3, a STOP-WORD-FILE can optionally be specified. If a NULLSTRING is specified, no STOP-WORD-FILE is used.

On error, @ERROR is returned; on success, a FLOATLIST with 4-elements is returned.
The elements have the following meaning:
element   meaning:
1   number of added documents
2   number of changed documents
3   number of removed documents
4   bytes indexed

FN2 (options):
DEC

0016   Creates to index with word, sentence, and paragraph breaks. (Allows searching for words in sentences and paragraphs.)
0032   Optimizes the created index (e.g. for the use on CD-ROM media.)
0064   Also indexes attachments.
0128   Also indexes encrypted fields.
0256   Uses the options defined in the DB for indexing.
0512   Indexes only the fields whose SUMMARY flag is set.

The options can be combined by addition.
ACHTUNG:IMPORTANT:
The option marked in red can only be used on its own.

Example: @FTIndex(DBHANDLE1;FN2)

DBHANDLE1:=@OpenDB("TEST.NSF");
RetStatus:=@FTIndex(DBHANDLE1;256);
@LogReport(RetStatus);
DBHANDLE1:=@CloseDB(DBHANDLE1);

On success, the DB "TEST.NSF" is indexed and the change statistics (of the index) are returned in RetStatus and output.

Note : This text was machine-translated and may contain inaccuracies.