Arabic (U.A.E) language Lucene search issue

We identified this issue in multiple projects using Sitecore 7.0 and sitecore 8.1 and same solution did the trick for both version and might be in other versions as well

Issue:

It seems that for some reason unknown to me, Sitecore items in ar-AE get indexed in Lucene, but they do not get retrieved. This is painfully obvious.
However, the issue is not restricted to item buckets. The same problem holds if you do a search in the Sitecore UI for non-bucketed items. Even replicating in fresh installtion of the same version but issue still persist.

Solution:

This issue is because of “Lucene.Net.Analysis.AR.ArabicAnalyzer” defined in “”, as a work around follow below steps

  • Update the \App_Config\Include\Sitecore.ContentSearch.Lucene.DefaultIndexConfiguration.config file
    by replacing the
    <param desc=”defaultAnalyzer” type=”Lucene.Net.Analysis.AR.ArabicAnalyzer, Lucene.Net.Contrib.Analyzers”>
    with the following line:
    <param desc=”defaultAnalyzer” type=”Lucene.Net.Analysis.Standard.StandardAnalyzer, Lucene.Net”>
  • Rebuild indexes.

Now the items in ar-ae language should be indexes and retrieved well (faceting feature should work too). However there is a drawback of such approach — ar-ae field values won’t be analyzed properly (the ArabicAnalyzer way).

Leave a Reply

Your email address will not be published. Required fields are marked *

rfwbs-slide