lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ahmet Arslan <iori...@yahoo.com.INVALID>
Subject Re: Upper or Lower Case
Date Wed, 16 Jul 2014 22:53:38 GMT
Hi,

you need to put lowercase filter before kstem filter.

Ahmet 



On Wednesday, July 16, 2014 11:55 PM, "EXTERNAL Taminidi Ravi (ETI, Automotive-Service-Solutions)"
<external.Ravi.Taminidi@us.bosch.com> wrote:
Hi ,

If I search 'Transmission Flush' it get the good match results, but when I use 'transmission
flush' I get different order of results, I search for the Name column in the schema and it
has below config for the field type. Any clue what is wrong or is there any Conf changes need
to get the same results.?

<fieldType name="text_general" class="solr.TextField" positionIncrementGap="100">
      <analyzer type="index">
         <charFilter class="solr.HTMLStripCharFilterFactory" />
      <tokenizer class="solr.WhitespaceTokenizerFactory"/>
        <filter class="solr.StopFilterFactory" ignoreCase="true" words="stopwords.txt"
/>
              <filter class="solr.KStemFilterFactory"/>
              <filter class="solr.LowerCaseFilterFactory"/>
              <filter class="solr.WordDelimiterFilterFactory" generateWordParts="0"
generateNumberParts="0" splitOnCaseChange="0" splitOnNumerics="0" stemEnglishPossessive="0"
catenateWords="1" catenateNumbers="1" catenateAll="1" preserveOriginal="0"/>

              <!-- in this example, we will only use synonyms at query time
        <filter class="solr.SynonymFilterFactory" synonyms="index_synonyms.txt" ignoreCase="true"
expand="false"/>
        -->

      </analyzer>
      <analyzer type="query">
         <charFilter class="solr.HTMLStripCharFilterFactory" />
     <tokenizer class="solr.WhitespaceTokenizerFactory"/>
              <filter class="solr.KStemFilterFactory"/>
        <filter class="solr.StopFilterFactory" ignoreCase="true" words="stopwords.txt"
/>
        <filter class="solr.SynonymFilterFactory" synonyms="synonyms.txt" ignoreCase="true"
expand="true"/>
        <filter class="solr.LowerCaseFilterFactory"/>
              <filter class="solr.WordDelimiterFilterFactory" generateWordParts="0"
generateNumberParts="0" splitOnCaseChange="0" splitOnNumerics="0" stemEnglishPossessive="0"
catenateWords="1" catenateNumbers="1" catenateAll="1" preserveOriginal="0"/>

         </analyzer>
    </fieldType> 

Mime
View raw message