Package org.apache.lucene.analysis.core
Class SimpleAnalyzer
- java.lang.Object
-
- org.apache.lucene.analysis.Analyzer
-
- org.apache.lucene.analysis.core.SimpleAnalyzer
-
- All Implemented Interfaces:
java.io.Closeable
,java.lang.AutoCloseable
public final class SimpleAnalyzer extends Analyzer
AnAnalyzer
that filtersLetterTokenizer
withLowerCaseFilter
You must specify the required
Version
compatibility when creatingCharTokenizer
:- As of 3.1,
LowerCaseTokenizer
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 SimpleAnalyzer(Version matchVersion)
Creates a newSimpleAnalyzer
-
Method Summary
-
Methods inherited from class org.apache.lucene.analysis.Analyzer
close, getOffsetGap, getPositionIncrementGap, getReuseStrategy, tokenStream, tokenStream
-
-
-
-
Constructor Detail
-
SimpleAnalyzer
public SimpleAnalyzer(Version matchVersion)
Creates a newSimpleAnalyzer
- Parameters:
matchVersion
- Lucene version to match See {@link above}
-
-