Note that there are some explanatory texts on larger screens.

plurals
  1. POSolr Arabic search not working unless words are neighbors
    primarykey
    data
    text
    <p>So far my solr deployment for a set of Arabic data I have is working great. The stemming and normalization are all quite fantastic.</p> <p>The problem now is that the arabic search does not work UNLESS the words all form a contiguous phase. For example, let's say the following phrase:</p> <p>اسْمُهُ دَاوُدُ بْنُ أَبِي</p> <p>works just fine and gives me the desired data. However, if I search:</p> <p>اسْمُهُ دَاوُدُ أَبِي</p> <p>Then I get 0 results. Notice the second line is merely missing one of the words from the line above.</p> <p>I should be able to get results even if the words don't appear next to each other in the text itself.</p> <p>Any ideas would be much appreciated. My schema is as follows:</p> <pre><code>&lt;fieldType name="text_general_arabic" class="solr.TextField" positionIncrementGap="100"&gt; &lt;analyzer type="index"&gt; &lt;tokenizer class="solr.StandardTokenizerFactory"/&gt; &lt;filter class="solr.StopFilterFactory" ignoreCase="true" words="arabic_stopwords.txt" enablePositionIncrements="true" /&gt; &lt;filter class="solr.ArabicNormalizationFilterFactory"/&gt; &lt;filter class="solr.ArabicStemFilterFactory"/&gt; &lt;/analyzer&gt; &lt;analyzer type="query"&gt; &lt;tokenizer class="solr.StandardTokenizerFactory"/&gt; &lt;filter class="solr.StopFilterFactory" ignoreCase="true" words="arabic_stopwords.txt" enablePositionIncrements="true" /&gt; &lt;filter class="solr.ArabicNormalizationFilterFactory"/&gt; &lt;filter class="solr.ArabicStemFilterFactory"/&gt; &lt;/analyzer&gt; &lt;/fieldType&gt; </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload