Use query rewrites in the Rules Editor
This article describes how to use the Rewrites screen in the Rules Editor.
Query rewrite rule types
-
Head/Tail. Replace underperforming queries with queries that produce higher click-through rates. Query improvements always require review before they are published. Schedule the Head/Tail Analysis job to get AI-generated query improvements based on your signals collection.
Manually created Head/Tail rewrites must provide an "Improved Query" in a format appropriate to the type of request the rewrite will be applied to. For Legacy requests, this means a valid Solr query fit for use as theq
parameter. For DSL requests this means a JSON string representing the main DSL query.
For more information, see: -
Misspelling. Managed Fusion replaces misspelled query terms with their spelling corrections for better search results. Schedule the Token and Phrase Spell Correction job to get AI-generated spelling corrections based on your signals collection. See Misspelling Detection.
-
Phrase. Known phrases are boosted when they appear in new queries. Schedule the Phrase Extraction job to get AI-generated phrases based on your signals collection.
For more information, see: -
Synonym. Synonyms are used to expand queries so that they include all known synonyms of the query terms. To retrieve AI-generated synonyms based on your signals collection, schedule the Synonym Detection job. For more information, see How to use synonym detection.
-
Remove Words - Remove particular phrases from queries. Unlike other rewrites, these should be entered manually and are not generated by a job. See Remove Words.
Facets
Facet menu
To facet the rules list by Status or Published, click one of the facet items within the facet categories.
To facet the rules by Confidence, click and drag either slider to set the range of confidence you would like to see:
Faceting rules by confidence is not available for Head/Tail rewrites. |
Search
Enter a term in the search bar to quickly facet your query rewrite rules.
Rules
Begin by selecting a query rewrite rule types to create.
Create a rule
-
Click +Add.
-
In the new table row, complete the required fields, and additional fields as needed.
-
Click the checkmark to save, or close to cancel the changes.
Edit a rule
-
Hold the pointer over the rule to edit.
-
Click the pencil icon.
-
Enter desired changes and click the checkmark to save, or close to cancel the changes.
Approve/deny rules
-
Hold the pointer over a rule.
-
Select the checkbox that displays for that rule.
-
To modify multiple rules, hold the pointer over each rule and select its corresponding checkbox.
-
Click Approve or Deny as needed.
Publish a rule
-
Hold the pointer over a rule.
-
Select the checkbox that displays for that rule.
-
To publish multiple rules, hold the pointer over each rule and select its corresponding checkbox.
-
Click Publish Selected to publish the selected rules.
Publish an individual rule
-
Hold the pointer over a rule.
-
Click the button.
-
To confirm, click Publish.
Delete rules
Delete a single rule
-
Hold the pointer over a rule.
-
Click the trash can.
-
To confirm, click Delete.
Delete multiple rules
-
Hold the pointer over a rule.
-
Select the checkbox that displays for that rule.
-
To delete multiple rules, hold the pointer over each rule and select its corresponding checkbox.
-
Click Delete.
-
To confirm, click Delete again.
Sort rules
-
Hold the pointer over column titles. A icon displays for some titles to indicate the rules list can be sorted by that column.
-
Click the title column to sort the rules.
The column that is currently sorting the rules list is indicated by an or icon. |
Export rules
To export the rules list, click Export. This generates a .csv
file that contains your rules.
Columns
Customize columns
To customize columns:
-
Hold the pointer over the row of column titles.
-
Click the button.
-
In the Customize Columns to Display screen, select the checkboxes for the columns you want to display. Clear the checkboxes for columns you do not want to display.
-
Click Save. To exit without saving your changes, click Cancel.