SnowballAnalyzer is deprecated, you can use Lucene Porter Stemmer instead:
PorterStemmer stem = new PorterStemmer();
stem.setCurrent(word);
stem.stem();
String result = stem.getCurrent();
Hope this help!
More Related Contents:
- Is it 2 character search possible in lucence
- How to get a Token from a Lucene TokenStream?
- N-gram generation from a sentence
- How to do query auto-completion/suggestions in Lucene?
- How to implement auto suggest using Lucene’s new AnalyzingInfixSuggester API?
- Get highest frequency terms from Lucene index
- What is the default list of stopwords used in Lucene’s StopFilter?
- Exact Phrase search using Lucene?
- Lucene: Multi-word phrases as search terms
- Mac User – How do I set CLASSPATHS in Mac (I’m working on a Lucene Demo)
- New to Java and having issues writing and example
- What’s the best way to check if a String represents an integer in Java?
- Does Java have support for multiline strings?
- Unrecognized SSL message, plaintext connection? Exception
- How to use .jar files in NetBeans?
- Gradle – What is a non-zero exit value and how do I fix it?
- ArrayIndexOutOfBoundsException when iterating through all the elements of an array
- Keeping the correct style on text retrieval
- Loading images from jars for Swing HTML
- java regex capture group
- PDFBox : PDPageContentStream’s append mode misbehaving
- java swing background image
- UTF-8 text (Hindi) not getting displayed on Browser window or Eclipse console
- Jtextfield and keylistener
- How to download SNAPSHOT version from maven SNAPSHOT repository?
- (no) Properties in Java?
- How does the Euclidean Algorithm work?
- How to remove element from an array
- Attach debugger to application using Eclipse
- How to transmit live video from within a Java application?