Small example




Next: DOCUMENT SPEC EXAMPLE Up: Document Specification Syntax Previous: REGULAR EXPRESSION SYNTAX

Small example

Suppost you have files containing many documents, from which you will only index thier titles contained between <TI:> tags:

<TI:> Information Retrieval <:TI>
[...]
<TI:> Database Systems <:TI>

You format file (.fmt) should look like this:

<field> /<TI:>/
ti TEXT LOCAL
<end> /<:TI>/

Now that you have you format file <database>.fmt, call waisindex with option '-t fields'. Because the .fmt file already begins with the index file root name it is used by the FreeWAIS-sf waisindex program. The -t fields option must have a .fmt file present.

Now its time to give a more complicated example:

___________________________________________________

Ulrich Pfeifer
Thu May 25 16:37:04 MET DST 1995