Hi Dwaipayan,

Another way is to use KeywordMarkerFilter. Stemmer implementations respect this 
attribute.
If you want to supply your own mappings, StemmerOverrideTokenFilter could be 
used as well.

ahmet


On Monday, March 14, 2016 4:31 PM, Dwaipayan Roy <dwaipayan....@gmail.com> 
wrote:



​I am using EnglishAnalyzer with my own stopword list. EnglishAnalyzer uses
the porter stemmer (snowball) to stem the words. But using the
EnglishAnalyzer, I am getting erroneous result for 'news'. 'news' is
getting stemmed into 'new'.

Any help would be appreciated.

---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org
For additional commands, e-mail: java-user-h...@lucene.apache.org

Reply via email to