public final class StopAnalyzer extends Analyzer
| Modifier and Type | Field and Description |
|---|---|
static String[] |
ENGLISH_STOP_WORDS
An array containing some common English words that are not usually useful
for searching.
|
| Constructor and Description |
|---|
StopAnalyzer()
Builds an analyzer which removes words in ENGLISH_STOP_WORDS.
|
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.
|
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.
|
| Modifier and Type | Method and Description |
|---|---|
TokenStream |
tokenStream(String fieldName,
Reader reader)
Filters LowerCaseTokenizer with StopFilter.
|
getPositionIncrementGap, tokenStreampublic static final String[] ENGLISH_STOP_WORDS
public StopAnalyzer()
public StopAnalyzer(Set stopWords)
public StopAnalyzer(String[] stopWords)
public StopAnalyzer(File stopwordsFile) throws IOException
IOExceptionWordlistLoader.getWordSet(File)public StopAnalyzer(Reader stopwords) throws IOException
IOExceptionWordlistLoader.getWordSet(Reader)public TokenStream tokenStream(String fieldName, Reader reader)
tokenStream in class AnalyzerCopyright © 2000-2013 Apache Software Foundation. All Rights Reserved.