|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.lucene.analysis.Analyzer
org.apache.lucene.analysis.standard.StandardAnalyzer
public class StandardAnalyzer
Filters StandardTokenizer
with StandardFilter
, LowerCaseFilter
and StopFilter
, using a list of English stop words.
Field Summary | |
---|---|
static String[] |
STOP_WORDS
An array containing some common English words that are usually not useful for searching. |
Constructor Summary | |
---|---|
StandardAnalyzer()
Builds an analyzer with the default stop words ( STOP_WORDS ). |
|
StandardAnalyzer(File stopwords)
Builds an analyzer with the stop words from the given file. |
|
StandardAnalyzer(Reader stopwords)
Builds an analyzer with the stop words from the given reader. |
|
StandardAnalyzer(Set stopWords)
Builds an analyzer with the given stop words. |
|
StandardAnalyzer(String[] stopWords)
Builds an analyzer with the given stop words. |
Method Summary | |
---|---|
TokenStream |
tokenStream(String fieldName,
Reader reader)
Constructs a StandardTokenizer filtered by a StandardFilter , a LowerCaseFilter and a StopFilter . |
Methods inherited from class org.apache.lucene.analysis.Analyzer |
---|
getPositionIncrementGap |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String[] STOP_WORDS
Constructor Detail |
---|
public StandardAnalyzer()
STOP_WORDS
).
public StandardAnalyzer(Set stopWords)
public StandardAnalyzer(String[] stopWords)
public StandardAnalyzer(File stopwords) throws IOException
IOException
WordlistLoader.getWordSet(File)
public StandardAnalyzer(Reader stopwords) throws IOException
IOException
WordlistLoader.getWordSet(Reader)
Method Detail |
---|
public TokenStream tokenStream(String fieldName, Reader reader)
StandardTokenizer
filtered by a StandardFilter
, a LowerCaseFilter
and a StopFilter
.
tokenStream
in class Analyzer
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |