Pears Database Description Configuration File
A Pears database description configuration file contains the rules for creating a Pears database. It is divided into various sections in which you can set block size, declare input record format, and define indexes. Optionally, you may also include a section in the file to reference a specific record handler.
Sections in a Database Description Configuration File
The following sections make up a typical database description configuration file:
|[Bartlett] Optional||Contains optional parameters specific to the Bartlett utility|
|[DB] Required||Declares file and formatting characteristics for the database|
|[ Indexing Rules Section] Required||Contains an index definition for each separate index for the database|
|[ Record Handler] Dependent||
Sets parameters for the specific record handling class that is used to convert the input data into database records
Note: Some record handling classes ( record handlers) require or need additional parameters in order to interpret and convert input data successfully. These parameters vary according to the record handler being used and the nature of the data being imported into the database.
|[LockServer] Optional||Declares the host and port for the lock server that prevents the same database from being updated by two simultaneous Bartlett sessions|
Parameters in Each Section of a Database Description Configuration File
|badRecordMessageFile||Contains the text of a message when a record is not successfully committed to the database during a load|
The parameters and their settings within this section vary according to the record handler that is being used and the nature of the data being imported.
Note: The section name must match the name of a valid record handler and must also correspond with the
|[ rule label]||This is the descriptive label for a specific index. You may choose any label you like, although we recommend something meaningful that suggests the index's type, purpose, or content. The label must be unique, but is not linked to a corresponding item in a list located somewhere else within the database description configuration file.|
Unique index ID that is used internally to identify an index from all others for a particular database
Notes: The index ID is used to map an index defined in a WebZ database configuration file to its corresponding index in the .pdb file, which ultimately provides searcher access to a database from the WebZ Interface.
BER field tags that represent the sequence of nested parent and data tags within a record that must be traversed in order to find the term(s) to be indexed
Note: Since most indexes are collections of terms from different fields within a record, an index definition often has multiple tag paths.
|routine||References the specific class ( index routine) that is used to extract terms and build an index|
|Host||Name of the host on which the lock server is running|
|Port||Port on the host at which the lock server listens|
The following example is a database description configuration file for a MARC database:
- Ralph LeVan ( firstname.lastname@example.org)
Content Last Modified: March 28, 2001