Posts

Showing posts from January, 2017

Sitecore : How to configure Sitecore Synonym Search with Lucene?

Image
The pocess of breaking up text into tokens is called tokenization. Analyzers are nothing but the components which controls Tokenization. Sitecore’s Content Search API comes configured with the standard analyzer by default, however it’s possible to configure a synonym analyzer if you need this functionality (i.e. searching for a synonym of a word in content finds that result). Sitecore ships with its own implementation of a synonym analyzer:  Sitecore.ContentSearch.LuceneProvider.Analyzers.SynonymAnalyzer . The key to the synonym analyzer is providing it a list of synonyms, which need to be set in your own custom XML file. The reason for this is that Sitecore includes its own synonym engine implementation that uses XML files to store the synonym mappings. Configuring the Synonym Analyzer In  ContentSearch.Lucene.DefaultIndexConfiguration.config  , change the inner  defaultAnalyzer  parameter reference from the standard analyzer to the s...