Open topic with navigation

# Send Synonym Queries that Replace Query Text

You can use HPE QMS to replace all the text in a query with the result of a synonym rule.

By default, HPE QMS replaces terms that match the synonym rule `KEYWORDS` field with all terms that match the synonym rule `CONCEPT` field. Other terms in the query are not changed.

You can set the `SynonymReplace` action parameter in the query to replace all the query text with the `CONCEPT`.

For example, if you have set:

    #DREFIELD KEYWORDS="labrador"
    #DREFIELD CONCEPT="dog"

The following query:

    action=Query&Text=I walk my labrador in the park&ExpandQuery=True

expands to:

    action=Query&Text=I walk my dog in the park

However, the following query:

    action=Query&Text=I walk my labrador&ExpandQuery=True&SynonymReplace=True

expands to:

    action=Query&Text=dog

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

_HP_HTML5_bannerTitle.htm