Details
-
Improvement
-
Status: Open
-
Critical
-
Resolution: Unresolved
-
None
-
None
-
None
Description
In solr search I want to search with product name using Arabic letters.
While searching, Arabic user can feel little default to search some product
name. Because some characters need to be exactly mentioned while searching such as (أ، إ، آ) A character in Arabic.
Ex: إ أ آ
In the above mentioned characters, user can get combination of shift key.
Usually if Arabic people will mention “ ا “ character and will get the
below combined words as the difference is only in pronunciation .
Ex: إبرا
For Arabic text indexing & querying we configured Schema.xml as it below:
<fieldType name="text_ar" class="solr.TextField" positionIncrementGap="100">
<analyzer type="query">
<tokenizer class="solr.StandardTokenizerFactory"/>
<!-- for any non-arabic -->
<filter class="solr.LowerCaseFilterFactory"/>
<filter class="solr.StopFilterFactory" ignoreCase="true" words="lang/stopwords_ar.txt" />
<!-- normalizes ﻯ to ﻱ, etc -->
<filter class="solr.ArabicNormalizationFilterFactory"/>
<filter class="solr.ArabicStemFilterFactory"/>
</analyzer>
</fieldType>