public class SearchFieldAnalyzer
extends org.apache.lucene.analysis.Analyzer
| Constructor and Description |
|---|
SearchFieldAnalyzer()
Constructs a new SearchFieldAnalyzer.
|
| Modifier and Type | Method and Description |
|---|---|
protected org.apache.lucene.analysis.Analyzer.TokenStreamComponents |
createComponents(java.lang.String fieldName)
Creates a the TokenStreamComponents used to analyze the stream.
|
static org.apache.lucene.analysis.CharArraySet |
getStopWords()
Returns the set of stop words being used.
|
void |
reset()
Resets the analyzer.
|
public SearchFieldAnalyzer()
public static org.apache.lucene.analysis.CharArraySet getStopWords()
protected org.apache.lucene.analysis.Analyzer.TokenStreamComponents createComponents(java.lang.String fieldName)
createComponents in class org.apache.lucene.analysis.AnalyzerfieldName - the field that this lucene analyzer will processpublic void reset()
throws java.io.IOException
java.io.IOException - thrown if there is an error resetting the tokenizerCopyright© 2012-21 Jeremy Long. All Rights Reserved.