public final class CustomAnalyzer
extends org.apache.lucene.analysis.Analyzer
| Constructor and Description |
|---|
CustomAnalyzer(TokenizerFactory tokenizerFactory,
CharFilterFactory[] charFilters,
TokenFilterFactory[] tokenFilters) |
CustomAnalyzer(TokenizerFactory tokenizerFactory,
CharFilterFactory[] charFilters,
TokenFilterFactory[] tokenFilters,
int positionIncrementGap,
int offsetGap) |
| Modifier and Type | Method and Description |
|---|---|
CharFilterFactory[] |
charFilters() |
protected org.apache.lucene.analysis.Analyzer.TokenStreamComponents |
createComponents(String fieldName) |
int |
getOffsetGap(String field) |
int |
getPositionIncrementGap(String fieldName) |
protected Reader |
initReader(String fieldName,
Reader reader) |
TokenFilterFactory[] |
tokenFilters() |
TokenizerFactory |
tokenizerFactory() |
public CustomAnalyzer(TokenizerFactory tokenizerFactory, CharFilterFactory[] charFilters, TokenFilterFactory[] tokenFilters)
public CustomAnalyzer(TokenizerFactory tokenizerFactory, CharFilterFactory[] charFilters, TokenFilterFactory[] tokenFilters, int positionIncrementGap, int offsetGap)
public TokenizerFactory tokenizerFactory()
public TokenFilterFactory[] tokenFilters()
public CharFilterFactory[] charFilters()
public int getPositionIncrementGap(String fieldName)
getPositionIncrementGap in class org.apache.lucene.analysis.Analyzerpublic int getOffsetGap(String field)
getOffsetGap in class org.apache.lucene.analysis.Analyzerprotected org.apache.lucene.analysis.Analyzer.TokenStreamComponents createComponents(String fieldName)
createComponents in class org.apache.lucene.analysis.AnalyzerCopyright © 2009–2017. All rights reserved.