public final class WhitespaceGapAnalyzer
extends org.apache.lucene.analysis.Analyzer
WhitespaceTokenizer, and inserts
position gaps of 100 between multiple values to inhibit phrase and span matches
across values.org.apache.lucene.analysis.Analyzer.GlobalReuseStrategy, org.apache.lucene.analysis.Analyzer.PerFieldReuseStrategy, org.apache.lucene.analysis.Analyzer.ReuseStrategy, org.apache.lucene.analysis.Analyzer.TokenStreamComponents| Constructor and Description |
|---|
WhitespaceGapAnalyzer() |
| Modifier and Type | Method and Description |
|---|---|
protected org.apache.lucene.analysis.Analyzer.TokenStreamComponents |
createComponents(String fieldName,
Reader reader) |
int |
getPositionIncrementGap(String field) |
protected org.apache.lucene.analysis.Analyzer.TokenStreamComponents createComponents(String fieldName, Reader reader)
createComponents in class org.apache.lucene.analysis.Analyzerpublic int getPositionIncrementGap(String field)
getPositionIncrementGap in class org.apache.lucene.analysis.AnalyzerCopyright © 2013. All Rights Reserved.