Hi Mohan,

The analyzer in your text_ar field type looks like an expanded version of the 
one suggested in the Solr Reference Guide[1].

Can you give an example of a query and the indexed text you expect to match but 
doesn't?

ArabicNormalizationFilterFactory, which uses Lucene’s ArabicNormalizer[2] 
should convert alefs with hamza to plain alef, among several other 
normalizations.

The Light 10 stemming algorithm implemented by ArabicNormalizer and 
ArabicStemmer[3] is described here: 
<http://www.mtholyoke.edu/~lballest/Pubs/arab_stem05.pdf>.

[1] Solr Ref Guide: Language Analysis: Arabic 
<https://cwiki.apache.org/confluence/display/solr/Language+Analysis#LanguageAnalysis-Arabic>
[2] ArabicNormalizer javadocs 
<https://lucene.apache.org/core/6_4_0/analyzers-common/org/apache/lucene/analysis/ar/ArabicNormalizer.html>
[3] ArabicStemmer javadocs 
<https://lucene.apache.org/core/6_4_0/analyzers-common/org/apache/lucene/analysis/ar/ArabicStemmer.html>

--
Steve
www.lucidworks.com

> On Jan 29, 2017, at 2:12 PM, mohan sundaram <mohanmc...@gmail.com> wrote:
> 
> Hi,
> 
> 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 mention while searching.
> 
> 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.
> 
> Ex: إبرا
> 
> 
> In my solr schema.xml I defined product arabic name field as below
> 
> 
> <field name="productNameArabic" type="text_ar" indexed="true"
> stored="true"/>
> 
> 
>  <fieldType name="text_ar" class="solr.TextField"
> positionIncrementGap="100">
> 
>      <analyzer>
> 
>        <tokenizer class="solr.StandardTokenizerFactory"/>
> 
>        <filter class="solr.LowerCaseFilterFactory"/>
> 
>        <filter class="solr.StopFilterFactory" ignoreCase="true"
> words="lang/stopwords_ar.txt" />
> 
>        <filter class="solr.ArabicNormalizationFilterFactory"/>
> 
>        <filter class="solr.ArabicStemFilterFactory"/>
> 
>      </analyzer>
> 
>    </fieldType>
> 
> 
> 
> What changes I have do in schame.xml. Please help me on this.
> 
> 
> 
> --
> Regards,
> Mohan.N
> 096896429683

Reply via email to