public final class StopAnalyzer extends StopwordAnalyzerBase
Analyzer.ReuseStrategy, Analyzer.TokenStreamComponents
stopwords
GLOBAL_REUSE_STRATEGY, PER_FIELD_REUSE_STRATEGY
Constructor and Description |
---|
StopAnalyzer(CharArraySet stopWords)
Builds an analyzer with the stop words from the given set.
|
stopwordsFile)
Builds an analyzer with the stop words from the given path.
|
stopwords)
Builds an analyzer with the stop words from the given reader.
|
Modifier and Type | Method and Description |
---|---|
protected Analyzer.TokenStreamComponents |
fieldName)
Creates
Analyzer.TokenStreamComponents
used to tokenize all the text in the provided . |
protected TokenStream |
fieldName,
TokenStream in) |
getStopwordSet, loadStopwordSet, loadStopwordSet, loadStopwordSet
attributeFactory, close, getOffsetGap, getPositionIncrementGap, getReuseStrategy, getVersion, initReader, initReaderForNormalization, normalize, setVersion, tokenStream, tokenStream
public StopAnalyzer(CharArraySet stopWords)
stopWords
- Set of stop wordspublic StopAnalyzer( stopwordsFile) throws
stopwordsFile
- File to load stop words from
WordlistLoader.getWordSet(Reader)
public StopAnalyzer( stopwords) throws
stopwords
- Reader to load stop words from
WordlistLoader.getWordSet(Reader)
protected fieldName)
Analyzer.TokenStreamComponents
used to tokenize all the text in the provided .createComponents
in class Analyzer
Analyzer.TokenStreamComponents
built from a LetterTokenizer
filtered with
StopFilter
protected fieldName, TokenStream in)
Copyright © 2000-2021 Apache Software Foundation. All Rights Reserved.