public class CJKAnalyzer extends Analyzer
Modifier and Type | Field and Description |
---|---|
static String[] |
STOP_WORDS
An array containing some common English words that are not usually
useful for searching and some double-byte interpunctions.
|
Constructor and Description |
---|
CJKAnalyzer()
Builds an analyzer which removes words in
STOP_WORDS . |
CJKAnalyzer(String[] stopWords)
Builds an analyzer which removes words in the provided array.
|
Modifier and Type | Method and Description |
---|---|
TokenStream |
tokenStream(String fieldName,
Reader reader)
get token stream from input
|
close, getPositionIncrementGap, getPreviousTokenStream, reusableTokenStream, setPreviousTokenStream
public static final String[] STOP_WORDS
public CJKAnalyzer()
STOP_WORDS
.public CJKAnalyzer(String[] stopWords)
stopWords
- stop word arraypublic final TokenStream tokenStream(String fieldName, Reader reader)
tokenStream
in class Analyzer
fieldName
- lucene field namereader
- input readerCopyright © 2000-2013 Apache Software Foundation. All Rights Reserved.