public final class WhitespaceAnalyzer extends Analyzer
WhitespaceTokenizer.Analyzer.ReuseStrategy, Analyzer.TokenStreamComponentsGLOBAL_REUSE_STRATEGY, PER_FIELD_REUSE_STRATEGY| Constructor and Description |
|---|
WhitespaceAnalyzer()
Creates a new
WhitespaceAnalyzer with a maximum token length of 255 chars |
WhitespaceAnalyzer(int maxTokenLength)
Creates a new
WhitespaceAnalyzer with a custom maximum token length |
| Modifier and Type | Method and Description |
|---|---|
protected Analyzer.TokenStreamComponents |
createComponents(String fieldName) |
attributeFactory, close, getOffsetGap, getPositionIncrementGap, getReuseStrategy, getVersion, initReader, initReaderForNormalization, normalize, normalize, setVersion, tokenStream, tokenStreampublic WhitespaceAnalyzer()
WhitespaceAnalyzer with a maximum token length of 255 charspublic WhitespaceAnalyzer(int maxTokenLength)
WhitespaceAnalyzer with a custom maximum token lengthmaxTokenLength - the maximum token length the analyzer will emitprotected Analyzer.TokenStreamComponents createComponents(String fieldName)
createComponents in class AnalyzerCopyright © 2000-2021 Apache Software Foundation. All Rights Reserved.