Main -> Documentation -> Database Builder – Newton -> Creating a New SiteSearch Database -> Database Description (.dsc) File: Structure and Syntax -> Synonyms Definition

Synonyms Definition

The synonyms definition in the database description (.dsc) file allows you to define synonyms associated with an index for terms within your database. For example, you could define "fre" to be a synonym of the term "french." Thus, a search on "french" or "fre" would correctly return "french." You can define more than one synonym per term.

Note:

Synonyms are defined on a per index basis.

Syntax

begin synonyms

index terms/index id:synonym terms;

end synonyms

Element

Description

begin synonyms

end synonyms

Denotes the beginning and ending of the synonyms definition in the .dsc file.

index terms

Identifies the real term in the index that the synonym is tied to.

index id

Specifies the index identification number in which to locate the real term. The index id must be between 1 and 254.

synonym terms

Provides a list of synonyms for the real term. Multiple terms are separated by a comma and blank space, and a semicolon (';') must delimit the string. The text must be valid alphanumeric characters.

Example

In the following example, "eng" and "engsyn" are defined as synonyms for the term, "english," and this definition applies to index 31. Similarly, "fre" is defined as a synonym for "french" within the same index.

begin synonyms
english/31:eng, engsyn;
french/31:fre;
end synonyms

See Also

Creating a Database Description (.dsc) File
Database Description (.dsc) File: Structure and Syntax
Database Description (.dsc) File Example


[Main][Documentation][Support][Technical Reference][Community][Glossary][Search]

Last Modified: