Augmenting queries

In Sybase Search, the use of synonyms and acronyms is collectively called query augmentation. Synonyms are implemented as lists of words that are considered to have the same meaning. For example:

When a term featured in a list is used as a query parameter, all the other words in the list are appended to the query. For example, the query The medicine made me drowsy, when augmented using the previous synonym examples, becomes the following query:

The medicine made me drowsy, lethargic, listless, sleepy.

Acronyms are implemented as a list of keys (or a single key) with a corresponding list of values. In the following example the keys “HTML” and “HTM” have the values “Hypertext Markup Language”:

Acronyms can augment a query in two ways:

You can change the list of synonyms and acronyms using one of two methods:

The format of QueryAugmentor_en.xml is as follows:

<QueryAugmentor xml:”en”>
       <Synonym>
             <Word>vacation</Word>
             <Word>holiday</Word>
       </Synonym>
       etc

       <Acronym>
              <Word>UK</Word>
              <Phrase>united kingdom</Phrase>
       </Acronym>
       etc
</QueryAugmentor>

NoteSynonyms and acronyms are processed at runtime, so you can edit the augmentation list without having to index any documents again. However, you must restart Sybase Search to load the new synonym and acronym lists.