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="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

Related Topics

- Create Synonym Rules

© 2016 Hewlett Packard Enterprise Development LP | Send documentation feedback to HPE Close We welcome your comments! 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 AutonomyTPFeedback@hpe.com. Product: Topic Title: Help Topic: Feedback:

_HP_HTML5_bannerTitle.htm