public class DSAnalyzer
extends org.apache.lucene.analysis.util.StopwordAnalyzerBase
org.apache.lucene.analysis.Analyzer.GlobalReuseStrategy, org.apache.lucene.analysis.Analyzer.PerFieldReuseStrategy, org.apache.lucene.analysis.Analyzer.ReuseStrategy, org.apache.lucene.analysis.Analyzer.TokenStreamComponents| Modifier and Type | Field and Description |
|---|---|
protected org.apache.lucene.util.Version |
matchVersion |
protected static java.lang.String[] |
STOP_WORDS |
protected org.apache.lucene.analysis.util.CharArraySet |
stopSet |
| Constructor and Description |
|---|
DSAnalyzer(org.apache.lucene.util.Version matchVersion)
Builds an analyzer
|
| Modifier and Type | Method and Description |
|---|---|
protected org.apache.lucene.analysis.Analyzer.TokenStreamComponents |
createComponents(java.lang.String fieldName,
java.io.Reader reader) |
int |
getPositionIncrementGap(java.lang.String fieldName) |
getStopwordSet, loadStopwordSet, loadStopwordSet, loadStopwordSetprotected final org.apache.lucene.util.Version matchVersion
protected static final java.lang.String[] STOP_WORDS
protected final org.apache.lucene.analysis.util.CharArraySet stopSet
public DSAnalyzer(org.apache.lucene.util.Version matchVersion)
matchVersion - Lucene version to matchprotected org.apache.lucene.analysis.Analyzer.TokenStreamComponents createComponents(java.lang.String fieldName,
java.io.Reader reader)
createComponents in class org.apache.lucene.analysis.Analyzerpublic int getPositionIncrementGap(java.lang.String fieldName)
getPositionIncrementGap in class org.apache.lucene.analysis.AnalyzerCopyright © 2013 DuraSpace. All Rights Reserved.