Main -> Documentation -> Database Builder Newton -> Creating a New SiteSearch Database -> Database Description (.dsc) File: Structure and Syntax -> Term Adjacency Definitions |
Term adjacency definitions allow you to create positional information about each indexed term. Positional information refers to the field and position that a term occupies in a record. Indexes that include term adjacency information can be searched using the proximity operators WITH and NEAR. In order to have the option of building term adjacency into an index, the term adjacency definition must be initialized at the beginning of the database description (.dsc) file using the syntax noted below. Term adjacency is then invoked from the with keyword in every index's definition in which you want to incorporate adjacency information. The adjacency information is calculated and stored according to an adjacency function (adj_function) at the time that the database is built. Below is an example of an index definition that invokes term adjacency:
Notice that the last line of the index definition uses the with keyword to refer to the pos and fldid adjacency functions defined in the .dsc file and described in the syntax table below. Important Note: Phrase indexes cannot use term adjacency definitions. Syntax char|short adj_function
Example The information below gives you an example of a term adjacency definition to refer to as you create your .dsc file.
The term adjacency definitions are typically included at the beginning of the .dsc file after you have defined the database identification and the database file definitions. Refer to the Database Description (.dsc) File Example to see where this definition is located in the file in relation to the other elements that you will need to include. See Also Creating a Database Description (.dsc) File |
[Main][Documentation][Support][Technical
Reference][Community][Glossary][Search]
|