Class AutoCompleteAnalyzer
java.lang.Object
org.apache.lucene.analysis.Analyzer
org.apache.lucene.analysis.StopwordAnalyzerBase
com.apple.foundationdb.record.lucene.AutoCompleteAnalyzer
- All Implemented Interfaces:
Closeable
,AutoCloseable
public class AutoCompleteAnalyzer
extends org.apache.lucene.analysis.StopwordAnalyzerBase
An analyzer that is used to analyze the auto_complete input.
Essentially, this analyzer combines
UAX29URLEmailAnalyzer
and CjkUnigramFilter
to apply relatively minimal transformation on the text.-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.lucene.analysis.Analyzer
org.apache.lucene.analysis.Analyzer.ReuseStrategy, org.apache.lucene.analysis.Analyzer.TokenStreamComponents
-
Field Summary
FieldsFields inherited from class org.apache.lucene.analysis.StopwordAnalyzerBase
stopwords
Fields inherited from class org.apache.lucene.analysis.Analyzer
GLOBAL_REUSE_STRATEGY, PER_FIELD_REUSE_STRATEGY
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected org.apache.lucene.analysis.Analyzer.TokenStreamComponents
createComponents
(String fieldName) protected org.apache.lucene.analysis.TokenStream
Methods inherited from class org.apache.lucene.analysis.StopwordAnalyzerBase
getStopwordSet, loadStopwordSet, loadStopwordSet, loadStopwordSet
Methods inherited from class org.apache.lucene.analysis.Analyzer
attributeFactory, close, getOffsetGap, getPositionIncrementGap, getReuseStrategy, getVersion, initReader, initReaderForNormalization, normalize, setVersion, tokenStream, tokenStream
-
Field Details
-
UNIQUE_IDENTIFIER
- See Also:
-
-
Constructor Details
-
AutoCompleteAnalyzer
public AutoCompleteAnalyzer()
-
-
Method Details
-
createComponents
protected org.apache.lucene.analysis.Analyzer.TokenStreamComponents createComponents(String fieldName) - Specified by:
createComponents
in classorg.apache.lucene.analysis.Analyzer
-
normalize
protected org.apache.lucene.analysis.TokenStream normalize(String fieldName, org.apache.lucene.analysis.TokenStream in) - Overrides:
normalize
in classorg.apache.lucene.analysis.Analyzer
-