org.apache.lucene.analysis
public final class StopAnalyzer extends Analyzer
Field Summary | |
---|---|
static String[] | ENGLISH_STOP_WORDS An array containing some common English words that are not usually useful
for searching. |
Constructor Summary | |
---|---|
StopAnalyzer() Builds an analyzer which removes words in ENGLISH_STOP_WORDS. | |
StopAnalyzer(Set stopWords) Builds an analyzer with the stop words from the given set. | |
StopAnalyzer(String[] stopWords) Builds an analyzer which removes words in the provided array. | |
StopAnalyzer(File stopwordsFile) Builds an analyzer with the stop words from the given file. | |
StopAnalyzer(Reader stopwords) Builds an analyzer with the stop words from the given reader. |
Method Summary | |
---|---|
TokenStream | tokenStream(String fieldName, Reader reader) Filters LowerCaseTokenizer with StopFilter. |
See Also: getWordSet
See Also: getWordSet