Open topic with navigation

# 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

Related Topics

- Create Synonym Rules

© 2018 EntIT Software LLC, a Micro Focus company | Send documentation feedback to Micro Focus Close Send documentation feedback To open the configured email client on this computer, open an email window. Otherwise, copy the information below to a web mail client, and send this email to swpdl.idoldocsfeedback@microfocus.com. We appreciate your feedback! Product: Topic Title: Help Topic: Feedback:

_FT_HTML5_bannerTitle.htm