public final class CJKAnalyzer
extends org.apache.lucene.analysis.StopwordAnalyzerBase
Analyzer
that tokenizes text with StandardTokenizer
,
normalizes content with CJKWidthFilter
, folds case with
LowerCaseFilter
, forms bigrams of CJK with CJKBigramFilter
,
and filters stopwords with StopFilter
Modifier and Type | Field and Description |
---|---|
static java.lang.String[] |
STOP_WORDS
Deprecated.
use
getDefaultStopSet() instead |
Constructor and Description |
---|
CJKAnalyzer(org.apache.lucene.util.Version matchVersion)
Builds an analyzer which removes words in
getDefaultStopSet() . |
CJKAnalyzer(org.apache.lucene.util.Version matchVersion,
java.util.Set<?> stopwords)
Builds an analyzer with the given stop words
|
CJKAnalyzer(org.apache.lucene.util.Version matchVersion,
java.lang.String... stopWords)
Deprecated.
use
CJKAnalyzer(Version, Set) instead |
Modifier and Type | Method and Description |
---|---|
protected org.apache.lucene.analysis.ReusableAnalyzerBase.TokenStreamComponents |
createComponents(java.lang.String fieldName,
java.io.Reader reader) |
static java.util.Set<?> |
getDefaultStopSet()
Returns an unmodifiable instance of the default stop-words set.
|
getStopwordSet, loadStopwordSet, loadStopwordSet, loadStopwordSet
initReader, reusableTokenStream, tokenStream
@Deprecated public static final java.lang.String[] STOP_WORDS
getDefaultStopSet()
insteadpublic CJKAnalyzer(org.apache.lucene.util.Version matchVersion)
getDefaultStopSet()
.public CJKAnalyzer(org.apache.lucene.util.Version matchVersion, java.util.Set<?> stopwords)
matchVersion
- lucene compatibility versionstopwords
- a stopword set@Deprecated public CJKAnalyzer(org.apache.lucene.util.Version matchVersion, java.lang.String... stopWords)
CJKAnalyzer(Version, Set)
insteadstopWords
- stop word arraypublic static java.util.Set<?> getDefaultStopSet()
protected org.apache.lucene.analysis.ReusableAnalyzerBase.TokenStreamComponents createComponents(java.lang.String fieldName, java.io.Reader reader)
createComponents
in class org.apache.lucene.analysis.ReusableAnalyzerBase