Synonyms
Synonyms are:- Words that mean the same thing, within the context where they are used.
- Used in searches. And synonym expansion allows Fusion to return results that match the meaning of the query terms, but not the words themselves.
-
Important for mapping query terms such as:
- Acronyms to their names
- Jargon to public terms
- Misspellings to correct spellings
- Old to new personal or corporate names
- Bridging the gap between the user vocabulary and terms in the original text
synonyms.txt
and Solr collections, which are managed by Fusion.
Solr itself manages a set of resources to apply synonym expansion, with configuration through the Fusion API and the Fusion UI.
However, Fusion synonyms are not interchangeable with Solr synonyms files.
If you have a Fusion AI license, see also the Synonym and Similar Queries Detection job which automatically detects synonyms to use in query rewriting.
Use Synonym Detection
Use Synonym Detection
LucidAcademyLucidworks offers free training to help you get started.The Course for Query Analytics focuses on how Fusion provides query analytics to detect and improve underperforming queries:Visit the LucidAcademy to see the full training catalog.
Reviewing auto-generated synonym pairs
Synonyms that are automatically generated by the Synonym and Similar Queries Detection job are assigned the following status value:-
Pending
The confidence level is ambiguous, and the result must be reviewed by a user before it can be deployed. It will only be moved from the
_query_rewrite_staging
collection to the_query_rewrite
collection when its status has changed to “Approved” and it has been published.By default, all results from a synonym job are set to “Pending”, since there are usually a limited number of synonyms, and synonym expansion can have high impact on relevancy.
How to review a pending synonym pair result
- Navigate to Relevance > Rules. The application displays the Query Rewriting screen.
-
Select Synonym Detection. The application displays the Synonym Detection screen.
Notice the Status facet on the left. Click Pending to view only the items that need review.
-
Click the
icon next to the synonym pair.
-
In the Status column, select either “Approved” or “Denied”.
Optionally, you can also edit the synonym pair itself.
Where alternative synonyms were detected, you can click Suggestions to view and select them as replacements for the displayed synonym pair:
Although the Confidence field is also editable, changing its value makes no difference.
-
Click the Close icon next to the updated synonym pair:
Approving a synonym pair does not automatically deploy it to the
_query_rewrite
collection. When you have finished your review, you must click Publish to deploy your changes.Adding new synonym pairs
You can manually add synonym pairs in addition to any generated by the Synonym and Similar Queries Detection job.How to add a synonym pair
- Navigate to Relevance > Rules. The application displays the Query Rewriting screen.
- Select Synonym Detection. The application displays the Synonym Detection screen.
-
At the bottom of the rules list, click the
icon. A new synonym pair appears at the top of the list:
- Enter the query term.
-
Enter one or more synonym pairs.
It is not necessary to set a confidence value.
- Select the synonym pair’s status, depending on whether you want to deploy it the next time you publish your changes (“Approved”) or save it for further review (“Pending”).
-
Click the check mark to save the new synonym pair:
Publishing your changes
How to publish updated synonym pairs
- In the Synonym Detection screen, click the PUBLISH button. Fusion prompts you to confirm that you want to publish your changes.
- Click PUBLISH.
You can un-publish a query rewrite by changing its status to “denied”, then clicking PUBLISH.
Synonym types
There are three kinds of search synonyms, depending on the requirements of the search for each specific term.Replacement synonyms
Replacements are used to change the query, to replace it with a more standard term or terms. For example:One-way expansion synonyms
One-way expansions expand original terms with more standard terms while retaining the original term; they do not do the opposite, expand standard terms to the original non-standard termsMulti-way expansion synonyms
Where each term is considered equally standard, multiway synonyms expand the query so any items with any of the terms is retrieved.
