Show Menu
TOPICS×

About Query Expansion Overrides

You can override the expansion of search query results.

Using Query Expansion Overrides

When you configure a query expansion override, you create a set of "rules". Each rule says, essentially, "Do not expand <this> into <that> at the time of search" where <this> is a simple text word or phrase, and <that> is text word or phrase, or a classification.
This feature is not enabled in Search&Promote, by default. Contact Technical Support to activate the feature for your use. After the Query Expansion Overrides feature is enabled, you must "turn it on" in the user interface.
How a Query Expansion Override works
When a Text and Term value is specified in the Query Expansion Overrides Add page, the code acts on the specific pairing. When a classification type is specified as a Term, such as Dictionaries or Alternate Word Forms, the Do Not Expand value is not converted into any form created by the indicated classification.
For example, suppose that you have the following definition:
Do Not Expand = "dog"
Type = Text
Term = "dogs"
A search query for "dog", which expands to include "dog's" and "dogs" by way of Alternate Word Forms, would not include "dogs".
However, if the definition was the following:
Do Not Expand = "dog"
Type = Alternate Word Forms
The query does not include "dog's" or "dogs" (the available Alternate Word Forms for "dog".)
You can specify multiple terms, multiple classifications, or both. However, if you select All as the Type, any multiple-term list is collapsed to just a single "All" entry.
If Text and classification entries are mixed in any rule, they are reorganized in the user interface to show text values first. However, this does not imply or affect the order of evaluation at the time of search.
Text terms are validated to remove meaningless references. That is, it compares the term with the Do Not Expand value and removes the term if there is a match. Additionally, duplicate Term values, either text or classification, are removed.
If you add a new rule with a Do Not Expand value replicating an earlier definition, the new definition's Terms are added to the original.

Configuring Query Expansion Overrides

Defining and adding a Query Expansion override in Search&Promote.
This feature is not enabled in Search&Promote, by default. Contact Technical Support to activate the feature for your use. After the Query Expansion Overrides feature is enabled, you must "turn it on" in the user interface. The first few steps below outline how to do that.
To configure Query Expansion Overrides
  1. In Search&Promote, click Settings > User > View Roles .
  2. On the View Roles page, in the Actions column of the table, click Edit to the right of the role whom you want to give access to Query Expansion Overrides on the Linguistics menu.
  3. On the Edit Role page, expand the Linguistics tree.
  4. Check Query Expansion Overrides , and then click Save Changes .
  5. Click Linguistics > Query Expansion Overrides .
  6. Click Add Query Expansion Overrides .
  7. In the Query Expansion Overrides Add page, set the options you want.
    Option
    Description
    Do Not Expand
    Specifies the word or phrase that you do not want to expand.
    Type
    Select Text to specify a specific word or phrase pairing. Or, select a classification to specify that the Do Not Expand word or phrase is not converted by way of the selected classification.
    Term
    Only available if you selected Text as the Type. Specifies the word or phrase to exclude from the search expansion.
    Action
    Click + or - to add or delete Terms, respectively, to the definition.
  8. When you are finished, click Add .
    From the Query Expansion Overrides Definitions page, you can edit or delete the definitions you have added.
  9. To preview the results of your additions, click regenerate your staged site index in the blue box to quickly rebuild your staged website index.
  10. (Optional) Do one of the following: