lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Donna L Gresh <>
Subject tell snowballfilter not to stem certain words?
Date Thu, 16 Aug 2007 18:34:53 GMT
Apologies if this is in the FAQ or elsewhere available but I could not 
find this.

Can I provide a list of words that should *not* be stemmed by the
SnowballFilter? My analyzer looks like this:

analyzer = new StandardAnalyzer(stopwords) {
        public TokenStream tokenStream(String fieldName, 
reader) {
          return new SnowballFilter(super.tokenStream(fieldName,reader),

It is removing the trailing "S" from some words which I don't want to have 
this happen for--


  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message