Working config (with proper russian stemming):

    <fieldType name="text" class="solr.TextField">
      <analyzer type="index"
class="org.apache.lucene.analysis.ru.RussianAnalyzer"></analyzer>
      <analyzer type="query"
class="org.apache.lucene.analysis.ru.RussianAnalyzer"></analyzer>
    </fieldType>


Non-working config (no russian stemming):

<fieldType name="text" class="solr.TextField" positionIncrementGap="100">
      <analyzer type="index">
        <tokenizer class="solr.HTMLStripStandardTokenizerFactory" />
        <filter class="solr.LowerCaseFilterFactory" />
        <filter class="solr.SnowballPorterFilterFactory" language="Russian"
/>
      </analyzer>
      <analyzer type="query"
class="org.apache.lucene.analysis.ru.RussianAnalyzer">
        <tokenizer class="solr.WhitespaceTokenizerFactory" />
        <filter class="solr.LowerCaseFilterFactory" />
        <filter class="solr.SnowballPorterFilterFactory" language="Russian"
/>
      </analyzer>
    </fieldType>

-- 
View this message in context: 
http://www.nabble.com/Problem-with-Russian-stemmer-in-Solr-1.2-tf4049948.html#a11516099
Sent from the Solr - User mailing list archive at Nabble.com.

Reply via email to