I couldn't find any examples of removing stop-words from text using Lucene 4.8. Can you please advise me on how to use the classes StopFilter and StopAnalyzer classes to achieve this.
Asked
Active
Viewed 49 times
1 Answers
1
Two of three StandardAnalyzer
constructors allow specifying stopwords; just use any of those. This analyzer uses StopFilter
underneath, you don't have to do anything extra.

mindas
- 26,463
- 15
- 97
- 154
-
http://www.javacodegeeks.com/2013/06/searching-made-easy-with-apache-lucene-4-3.html – mindas Jun 13 '14 at 13:48
-
That doesn't help me. It doesn't have any stop word removal code. – Vineel Jun 13 '14 at 16:54
-
Please re-read my answer. The example code in the link uses `StandardAnalyzer` which can be configured with stopwords. – mindas Jun 13 '14 at 17:12