lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David Seltzer" <dselt...@TVEyes.com>
Subject Stripping Punctuation in a fieldType
Date Fri, 15 Jan 2010 17:31:41 GMT
Hello All,

I'm trying to find the best way to set up a fieldType that strips
punctuation. I think the right way to do this is using a CharacterFilter
of some type, but I can't seem to find any examples of how to set this
up in a schema.xml file. 

Can anyone point me in the right direction?

Right now my fieldType looks like this:

<fieldType name="text_ws_lc" class="solr.TextField"
positionIncrementGap="100">
   <analyzer>
      <tokenizer class="solr.WhitespaceTokenizerFactory"/>
      <filter class="solr.LowerCaseFilterFactory"/>
   </analyzer>
</fieldType>

Thanks!

-Dave Seltzer



Mime
View raw message