com.lucene.analysis.standard
Class StandardAnalyzer
java.lang.Object
|
+--com.lucene.analysis.Analyzer
|
+--com.lucene.analysis.standard.StandardAnalyzer
- public final class StandardAnalyzer
- extends Analyzer
Filters StandardTokenizer
with StandardFilter
, LowerCaseFilter
and StopFilter
.
Field Summary |
static String[] |
STOP_WORDS
An array containing some common English words that are not usually useful
for searching. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
STOP_WORDS
public static final String[] STOP_WORDS
- An array containing some common English words that are not usually useful
for searching.
StandardAnalyzer
public StandardAnalyzer()
- Builds an analyzer.
StandardAnalyzer
public StandardAnalyzer(String[] stopWords)
- Builds an analyzer with the given stop words.
tokenStream
public final TokenStream tokenStream(Reader reader)
- Constructs a
StandardTokenizer
filtered by a StandardFilter
, a LowerCaseFilter
and a StopFilter
.
- Overrides:
tokenStream
in class Analyzer