Create Synonym Rules

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.

Required IDX fields for synonym rules

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 in the query text. Comma-separated list of words or phrases.
CONCEPT The expanded query text that replaces the matched query text. Replacement string.
DATABASERESTRICTION The databases to query. String

When a query matches the rule, QMS replaces any of the specified KEYWORDS that exist in the text with the value in the CONCEPT field.

KEYWORDS can be a list of individual words or phrases. Separate each word or phrase with a comma. For example:

#DREFIELD KEYWORDS="Software Development Kit,SDK"

When you use phrases, the entire phrase must match the query text for QMS to apply the rule. For example, software does not match this keyword example.

Note: QMS does not apply synonyms to exact phrase searches. For example, if a user searches for "software development kit" (including the quotation marks), QMS does not modify the query.

CONCEPTS can be any valid query text string, which QMS inserts into the query text in place of the matching keyword or phrase. For example:

DREFIELD CONCEPT=""Software Development Kit" OR SDK"

QMS surrounds multiple-word query strings with brackets when it modifies the query. For example, if a user searches for SDK OR API, QMS expands the query to ("Software Development Kit" OR SDK) OR API.

You can use an appropriate combination of KEYWORDS and CONCEPTS to create synonym, hyponym, and hypernym rules.

To create a synonym rule

To create a hyponym rule

To create a hypernym rule


_HP_HTML5_bannerTitle.htm