Wednesday, 5 August 2015

Umbraco Lucene Examine search in foreign languages

Today I had to implement search using Lucene/Examine on a German Umbraco site. It wasn't easy working out what to do, so here's the lowdown, for future reference.

 I installed Lucene.Net.Contrib using the Nuget Package Manager console:
PM> Install-Package Lucene.Net.Contrib -Version 2.9.4.1
Then I updated the index providers in the ExamineSettings.config file, like this example:
<add name="InternalIndexer" type="UmbracoExamine.UmbracoContentIndexer, UmbracoExamine"
           supportUnpublished="true"
           supportProtected="true"
           analyzer="Lucene.Net.Analysis.De.GermanAnalyzer, Lucene.Net.Contrib.Analyzers"/>
Then, re-index the whole site.

No comments:

Post a Comment

Comments are moderated, so you'll have to wait a little bit before they appear!