lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From roySolr <royrutten1...@gmail.com>
Subject Re: Strip special chars like "-"
Date Fri, 12 Aug 2011 07:55:12 GMT
Erick, you're right. It's working, my schema looks like this:

<fieldType name="name_type" class="solr.TextField"
positionIncrementGap="100">
      <analyzer type="index">
	 <charFilter class="solr.HTMLStripCharFilterFactory"/>
      	    <tokenizer class="solr.WhitespaceTokenizerFactory"/>
         <filter class="solr.LowerCaseFilterFactory"/>
      	    <filter class="solr.ASCIIFoldingFilterFactory"/> 
      	    <filter class="solr.TrimFilterFactory"/>
      	    <filter class="solr.WordDelimiterFilterFactory"
generateWordParts="1" catenateWords="1" splitOnCaseChange="0"
splitOnNumerics="0" stemEnglishPossessive="0"/> 
      </analyzer>
      <analyzer type="query">
	 <charFilter class="solr.HTMLStripCharFilterFactory"/>
      	    <tokenizer class="solr.WhitespaceTokenizerFactory"/>
         <filter class="solr.LowerCaseFilterFactory"/>
      	    <filter class="solr.ASCIIFoldingFilterFactory"/> 
      	    <filter class="solr.TrimFilterFactory"/>
      	    <filter class="solr.WordDelimiterFilterFactory"
generateWordParts="1" catenateWords="0" catenateNumbers="0"
splitOnCaseChange="0" splitOnNumerics="0" stemEnglishPossessive="0" /> 
      </analyzer>
    </fieldType>

Thanks for helping me!!

--
View this message in context: http://lucene.472066.n3.nabble.com/Strip-special-chars-like-tp3238942p3248545.html
Sent from the Solr - User mailing list archive at Nabble.com.

Mime
View raw message