org.apache.lucene.analysis.cn
Class ChineseAnalyzer
java.lang.Object
org.apache.lucene.analysis.Analyzer
org.apache.lucene.analysis.ReusableAnalyzerBase
org.apache.lucene.analysis.cn.ChineseAnalyzer
- All Implemented Interfaces:
- Closeable
Deprecated. Use StandardAnalyzer
instead, which has the same functionality.
This analyzer will be removed in Lucene 5.0
@Deprecated
public final class ChineseAnalyzer
- extends ReusableAnalyzerBase
An Analyzer
that tokenizes text with ChineseTokenizer
and
filters with ChineseFilter
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ChineseAnalyzer
public ChineseAnalyzer()
- Deprecated.
createComponents
protected ReusableAnalyzerBase.TokenStreamComponents createComponents(String fieldName,
Reader reader)
- Deprecated.
- Creates
ReusableAnalyzerBase.TokenStreamComponents
used to tokenize all the text in the provided Reader
.
- Specified by:
createComponents
in class ReusableAnalyzerBase
- Parameters:
fieldName
- the name of the fields content passed to the
ReusableAnalyzerBase.TokenStreamComponents
sink as a readerreader
- the reader passed to the Tokenizer
constructor
- Returns:
ReusableAnalyzerBase.TokenStreamComponents
built from a ChineseTokenizer
filtered with
ChineseFilter
Copyright © 2000-2011 Apache Software Foundation. All Rights Reserved.