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="SYNONYM(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, canine, or man's best friend to include all four 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 man's best friend"
#DREFIELD KEYWORDS="dog,hound,canine,man's best friend"
#DREFIELD CONCEPT="SYNONYM(dog hound canine "man's best friend")"
#DREFIELD DATABASERESTRICTION=""
#DREFIELD QMSFIELDTEXT="MATCH{pets}:Type"
#DREFIELD Category=""
#DRECONTENT
dog hound canine man's best friend
#DREENDDOC

This synonym rule expands the following query:

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

to:

action=Query&Text=SYNONYM(dog hound canine "man's best friend")&FieldText=MATCH{pets}:Type

_HP_HTML5_bannerTitle.htm