-1

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.

Vineel
  • 1,630
  • 5
  • 26
  • 47

1 Answers1

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