![]() |
![]()
| ![]() |
![]()
NAMEdtsrocffile — Describes the format and syntax of DtSearch ocf files SYNOPSISDTSROCFPATH=directory HOME=directory dtsearch.ocf austext.ocf DESCRIPTIONAn ocf file is a user-generated file that identifies the databases to be accessed and the execution options to be enabled by one instance of an online DtSearch API search engine. Different ocf files typically apply to different instances of the engine. The file is opened and read by DtSearchInit and its valid contents apply throughout an engine session. It may be reread during a session under certain circumstances referred to as reinitialization, usually caused either by recognizable changes in database files during the session or by a change in the ocf file's modification time stamp. Errors in an ocf file are typically either syntax errors or errors in databases referred to by the file. While the API expects the ocf file to be correct, most errors are not fatal. They usually result in a warning message and discard of the offending directive. But if no databases survive the initialization process, DtSearchInit will fail. For this reason, the only mandatory directive in an ocf file is at least one valid KEYTYPE directive for at least one valid and accessible database. The default base file name for an ocf file is dtsearch.ocf, although the alternative name austext.ocf is also a valid default. The file is expected to be found in the directory specified by theDTSROCFPATH environment variable, in the current working directory, or in the HOME directory, in that order. However the complete path/file name may be fully respecified by an argument to DtSearchInit. General FormatAn ocf file can contain only ASCII characters. Each line (character string terminated by an ASCII linefeed) contains 1 or more 'keywords', and optionally 1 or more 'values', all separated by token delimiter characters. All token delimiters are equivalent and any combination of one or more of them is acceptable for separating keywords and values. Token delimiters are the ASCII space, tab, comma, or equal sign. Keywords must begin in column 1, and the first character must be alphanumeric. Empty lines and lines that begin with #, $, *, or ! in column one are discarded in their entirety as comments. Any additional text beyond the last required value on a line is ignored as comments. keyword [keyword] [...] [value] [...] [comments]
Keywords and/or values might be case sensitive, but usually are not. The principal exceptions are database names, which are always case sensitive, and file names and path names in operating systems like UNIX where such things are normally case sensitive. Where a boolean value is required, any of the following are acceptable. Only enough of the first characters are parsed to distinguish between alternatives (case-insensitive):
A missing value is taken for the affirmative. The initialization function may provide defaults for missing values. Despite the defaults, an ocf file must be provided with at least the KEYTYPE(S) correctly completed for each database to be accessed by the engine. If lines are duplicated or directives conflict, the last specified value(s) will be used. Keywords and Options
Note:
ENVIRONMENT VARIABLES
EXAMPLESKEYTYPES xxx = 'A' 'b' 'C' Documents
Specifies that there are only 4 keytypes in the xxx database, whose keys each begin with A, b, C, and D, and creates generic user interface labels for the first three, and the label Documents for the last one. keytype xxx Records keytypes xxx 'r' Old_Records XYZs Specifies that there are 3 keytypes in the xxx database, whose keys each begin with R, r, and X, and associates them with the labels Records, Old Records, and XYZs respectively. PATH xxx = /usr/local/dt/etcsearch/databases/
LABEL helpdesk Level 2 Support Center Documents
whitlim = 300000
SEE ALSODtSearchInit(3), DtSrAPI(3), DtSearch(5)
|