Hello.

this is my filterchain for suggestion with termsComponent:

<fieldType name="textgen" class="solr.TextField" positionIncrementGap="100">
      <analyzer type="index">
        <tokenizer class="solr.WhitespaceTokenizerFactory"/>
                
                <filter class="solr.PatternReplaceFilterFactory"
                pattern="([,_])" replacement=" " replace="all" />
        
                <filter class="solr.CommonGramsFilterFactory" 
words="stopwords.txt"
ignoreCase="true"/>
                <filter class="solr.StandardFilterFactory"/>
                <filter class="solr.WordDelimiterFilterFactory" 
generateWordParts="1"
generateNumberParts="0" catenateWords="0" splitOnCaseChange="1"
splitOnNumerics="0"/>
        <filter class="solr.LowerCaseFilterFactory"/>
                <filter class="solr.ShingleFilterFactory" maxShingleSize="3"
outputUnigrams="true" />
                <filter class="solr.RemoveDuplicatesTokenFilterFactory"/>
      </analyzer>
      <analyzer type="query">
        <tokenizer class="solr.WhitespaceTokenizerFactory"/>
                
                <!-- Ein und Mehrzahl, ü == ue und ue == ü -->
                <filter class="solr.SnowballPorterFilterFactory" 
language="German2" />
                <charFilter class="solr.MappingCharFilterFactory"
mapping="mapping-ISOLatin1Accent.txt"/>
                
        <filter class="solr.CommonGramsFilterFactory" words="stopwords.txt"
ignoreCase="true"/>
                <filter class="solr.StandardFilterFactory"/>
        <filter class="solr.WordDelimiterFilterFactory"
generateWordParts="1" generateNumberParts="1" catenateAll="1"
splitOnCaseChange="1"/>
        <filter class="solr.LowerCaseFilterFactory"/>
                <!-- <filter class="solr.ShingleFilterFactory" 
maxShingleSize="2"
outputUnigrams="false"/> -->
                <filter class="solr.RemoveDuplicatesTokenFilterFactory"/>
      </analyzer>
    </fieldType>


so my question/problem is.

- when i index with this settings i got a underscore ("_") in my index. is
comma replace with underscore ? 
- solr import this strin: "Eiseimer COOL mit Greifer" into this -> "cool mit
mit" when i search for terms.prefix=cool
why is mit twice ? sometimes ist cool twice in my suggest ....

any idea ?? ! =) thx



-- 
View this message in context: 
http://lucene.472066.n3.nabble.com/underscore-comma-in-terms-prefix-tp919565p919565.html
Sent from the Solr - User mailing list archive at Nabble.com.

Reply via email to