public class StandardAnalyzer extends Analyzer
StandardTokenizer with StandardFilter, LowerCaseFilter and StopFilter, using a list of English stop words.| Modifier and Type | Field and Description |
|---|---|
static String[] |
STOP_WORDS
An array containing some common English words that are usually not
useful for searching.
|
| Constructor and Description |
|---|
StandardAnalyzer()
Builds an analyzer with the default stop words (
STOP_WORDS). |
StandardAnalyzer(File stopwords)
Builds an analyzer with the stop words from the given file.
|
StandardAnalyzer(Reader stopwords)
Builds an analyzer with the stop words from the given reader.
|
StandardAnalyzer(Set stopWords)
Builds an analyzer with the given stop words.
|
StandardAnalyzer(String[] stopWords)
Builds an analyzer with the given stop words.
|
| Modifier and Type | Method and Description |
|---|---|
TokenStream |
tokenStream(String fieldName,
Reader reader)
|
getPositionIncrementGap, tokenStreampublic static final String[] STOP_WORDS
public StandardAnalyzer()
STOP_WORDS).public StandardAnalyzer(Set stopWords)
public StandardAnalyzer(String[] stopWords)
public StandardAnalyzer(File stopwords) throws IOException
IOExceptionWordlistLoader.getWordSet(File)public StandardAnalyzer(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.