In all synonym rules, the IDX rule document has the same basic form.
The table shows all the fields that you must include in the IDX file for synonym rules. The value of the KEYWORDS
and CONCEPT
fields determines whether the rule is a synonym, hyponym, or hypernym rule.
Field | Description | Content type or value |
---|---|---|
#DREREFERENCE |
The reference for the rule. | String |
#DRETITLE |
The title of the rule. | String |
QMSTYPE |
The type of the QMS rule. | 4 |
QMSAGENTBOOL
|
The AgentBoolean expression used to match the original query text. | Boolean matching expression |
KEYWORDS
|
A list of words to match the query text. | Comma-separated list of words. Percent-encode spaces and punctuation in the keywords. |
CONCEPT
|
The expanded query text that replaces the matched query text. | Replacement string. Percent-encode spaces and punctuation in the string. |
DATABASERESTRICTION |
The databases to query. | String |
To create a synonym rule
Set the KEYWORDS
field to a list of all the synonymous terms, and set the CONCEPT
field to the same list.
QMS expands any query that matches one keyword to include all the other keyword terms.
To create a hyponym rule
Set the KEYWORDS
field to the parent term, and set the CONCEPT
field to the list of terms that the parent term describes (the hyponyms).
QMS alters a query that matches the parent term to include all the hyponyms, but not the original term.
To create a hypernym rule
Set the KEYWORDS
field to a list of the terms that the hypernym describes, and set the CONCEPT
field to the parent term (hypernym).
QMS alters any query that matches one of the list of child terms to query for the hypernym (and not the original term).
|