Document Specification Syntax




Next: REGULAR EXPRESSION SYNTAX Up: Indexing Previous: Indexing

Document Specification Syntax

Now what do the index types LOCAL, GLOBAL and BOTH mean?

Note that FreeWAIS-sf generates dictionaries and inverted files for each field. If there were no global or default field for general text search one would always have to specify a field in your queries. To avoid this inconvenience waisindex generates a default field which is used for searching if there is no fields specified. This field is called global, since it usually contains the information of some of the other fields which the administrator assumes to be useful for unexperienced users.

The contents of the index field are defined by using the keywords LOCAL, GLOBAL and BOTH in the field definitions.

LOCAL
Words in this field are not inserted in the global database and are only retrievable by field query. Numeric and date fields are particularly well suited to the use of this option.
GLOBAL
Words in this field are only inserted in the global database. This is analogous to the default free-text search of other versions of freeWAIS but allows all or part of the document to be indexed for general search. Do not specify a field name in this case since the field will be empty!
BOTH
Words in this field are inserted in both the current field database and the global database.

Regular expressions are used to find, match, and parse strings encountered in a document. These regular expressions are used within the .fmt file to delimit field entries. For those not familiar with regular expressions, some conventions are provided in the following section:

___________________________________________________




Next: REGULAR EXPRESSION SYNTAX Up: Indexing Previous: Indexing

___________________________________________________

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