Example Synonym Rules

The following rule expands any query for the terms dog, hound, or canine to include all three terms.

#DREREFERENCE 695120425336110405
#DRETITLE dog synonyms
#DREDBNAME ACTIVATED
#DREFIELD QMSTYPE="4"
#DREFIELD QMSAGENTBOOL="dog hound canine"
#DREFIELD KEYWORDS="dog,hound,canine"
#DREFIELD CONCEPT="dog hound canine"
#DREFIELD DATABASERESTRICTION=""
#DRECONTENT dog hound canine
#DREENDDOC

This synonym rule expands the following query:

action=Query&Text=hound&ExpandQuery=True

to:

action=Query&Text=dog hound canine

The following rule expands any query for the term dog, hound, or canine to include all three terms when the FieldText restricts the results to those that contain the term pets in the Type field.

#DREREFERENCE 695120425336110405
#DRETITLE dog synonyms
#DREDBNAME ACTIVATED
#DREFIELD QMSTYPE="4"
#DREFIELD QMSAGENTBOOL="dog hound canine"
#DREFIELD KEYWORDS="dog,hound,canine"
#DREFIELD CONCEPT="dog hound canine"
#DREFIELD DATABASERESTRICTION=""
#DREFIELD QMSFIELDTEXT="MATCH{pets}:Type"
#DREFIELD Category=""
#DRECONTENT dog hound canine
#DREENDDOC

This synonym rule expands the following query:

action=Query&Text=dog&FieldText=MATCH{pets}:Type&ExpandQuery=True

to:

action=Query&Text=dog hound canine&FieldText=MATCH{pets}:Type&ExpandQuery=True

_HP_HTML5_bannerTitle.htm