Package org.apache.lucene.analysis.core
Class WhitespaceAnalyzer
- java.lang.Object
-
- org.apache.lucene.analysis.Analyzer
-
- org.apache.lucene.analysis.core.WhitespaceAnalyzer
-
- All Implemented Interfaces:
java.io.Closeable
,java.lang.AutoCloseable
public final class WhitespaceAnalyzer extends Analyzer
An Analyzer that usesWhitespaceTokenizer
.You must specify the required
Version
compatibility when creatingCharTokenizer
:- As of 3.1,
WhitespaceTokenizer
uses an int based API to normalize and detect token codepoints. SeeCharTokenizer.isTokenChar(int)
andCharTokenizer.normalize(int)
for details.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.lucene.analysis.Analyzer
Analyzer.GlobalReuseStrategy, Analyzer.PerFieldReuseStrategy, Analyzer.ReuseStrategy, Analyzer.TokenStreamComponents
-
-
Field Summary
-
Fields inherited from class org.apache.lucene.analysis.Analyzer
GLOBAL_REUSE_STRATEGY, PER_FIELD_REUSE_STRATEGY
-
-
Constructor Summary
Constructors Constructor Description WhitespaceAnalyzer(Version matchVersion)
Creates a newWhitespaceAnalyzer
-
Method Summary
-
Methods inherited from class org.apache.lucene.analysis.Analyzer
close, getOffsetGap, getPositionIncrementGap, getReuseStrategy, tokenStream, tokenStream
-
-
-
-
Constructor Detail
-
WhitespaceAnalyzer
public WhitespaceAnalyzer(Version matchVersion)
Creates a newWhitespaceAnalyzer
- Parameters:
matchVersion
- Lucene version to match See {@link above}
-
-