I use Solr to index documents in 3 languages ββ(Arabic, French and English), I used this fieldType:
<fieldType name="text_general" class="solr.TextField" positionIncrementGap="100"> <analyzer type="index"> <tokenizer class="solr.StandardTokenizerFactory"/> <filter class="solr.StopFilterFactory" ignoreCase="true" words="stopwords.txt" enablePositionIncrements="true"/> <filter class="solr.LowerCaseFilterFactory"/> </analyzer> <analyzer type="query"> <tokenizer class="solr.StandardTokenizerFactory"/> <filter class="solr.StopFilterFactory" ignoreCase="true" words="stopwords.txt" enablePositionIncrements="true"/> <filter class="solr.SynonymFilterFactory" synonyms="synonyms.txt" ignoreCase="true" expand="true"/> <filter class="solr.LowerCaseFilterFactory"/> </analyzer> </fieldType>
Everything was fine, but in Arabic, when I put this query to search for a word like ΨΩΩ Solr doen't find the word, but when I put the word in the opposite ΩΩΨ from left to right, Solr will find the words and the result of the return.
Can I get the result for Arabic words?
khaled mabrouk
source share