public final class WhitespaceAnalyzer extends Analyzer
WhitespaceTokenizer
.
You may specify the Version
compatibility
when creating WhitespaceAnalyzer
:
WhitespaceTokenizer
uses an int based API to normalize and
detect token codepoints. See CharTokenizer.isTokenChar(int)
and
CharTokenizer.normalize(int)
for details.Analyzer.GlobalReuseStrategy, Analyzer.PerFieldReuseStrategy, Analyzer.ReuseStrategy, Analyzer.TokenStreamComponents
GLOBAL_REUSE_STRATEGY, PER_FIELD_REUSE_STRATEGY
Constructor and Description |
---|
WhitespaceAnalyzer()
Creates a new
WhitespaceAnalyzer |
WhitespaceAnalyzer(Version matchVersion)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
protected Analyzer.TokenStreamComponents |
createComponents(String fieldName,
Reader reader) |
close, getOffsetGap, getPositionIncrementGap, getReuseStrategy, getVersion, initReader, setVersion, tokenStream, tokenStream
public WhitespaceAnalyzer()
WhitespaceAnalyzer
@Deprecated public WhitespaceAnalyzer(Version matchVersion)
WhitespaceAnalyzer()
protected Analyzer.TokenStreamComponents createComponents(String fieldName, Reader reader)
createComponents
in class Analyzer
Copyright © 2000-2014 Apache Software Foundation. All Rights Reserved.