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:
Closeable,AutoCloseable
An Analyzer that uses
WhitespaceTokenizer.
You must specify the required Version compatibility
when creating CharTokenizer:
- As of 3.1,
WhitespaceTokenizeruses 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 -
Method Summary
Methods inherited from class org.apache.lucene.analysis.Analyzer
close, getOffsetGap, getPositionIncrementGap, getReuseStrategy, tokenStream, tokenStream
-
Constructor Details
-
WhitespaceAnalyzer
Creates a newWhitespaceAnalyzer- Parameters:
matchVersion- Lucene version to match See}invalid @link
{@link <a href="#version">above</a>
-