Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
I am trying to implement synonym searching in the Examine search engine that comes with Umbraco 8 out of the box.
Does anyone have any experience with implementing synonym searching in Examine/Umbraco 8. The options that I have been considering after looking around are -
I have been trawling around the forums for a definitive answer on this and cannot really find one. Essentially I want to stick with the Examine engine for simplicity, however I am starting to think that the best way to achieve what I am after would be to move to a new engine completely (elastic search for example).
Many thanks in advance.
What kind of synonyms are you hoping to search with?
Sometimes I'll add a multiple text field to documents in Umbraco to allow editors to supply 'synonyms' or other key terms that when searched for should match the particular document (and these terms are never displayed on the site, only added to Examine index and queried with a custom search filter.
If it's common variations of a search term you want to return then you could get some success using Examine's Fuzzy method:
The method takes a value between 0 and 1 for how closely a term should be matched, so a value of 0.8F is a good starting point, for matching common search terms to variations fo that word, eg Police matching Policeman...
... but that is different to true synonyms, eg matching 'fast' and 'quick'
Examine is a wrapper around Lucene.Net
So this article: https://www.codeproject.com/Articles/32201/Lucene-Net-Custom-Synonym-Analyzer might be useful for how this might be achievable with a custom analyzer in Examine.
For really complex search scenarios, I'll often now push the content from Umbraco into an Azure Search index, that has support for synonyms and faceting baked in!
(there's also a paid for package https://examinex.online/ that pushes Examine into azure search, so that might be a quick way of handling this)
Thanks very much Marc for the detailed reply! I will look into this and report back on my findings.
is working on a reply...
Write your reply to:
Image will be uploaded when post is submitted