|
|||||||||
| 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.StopAnalyzer
public final class StopAnalyzer
Filters LetterTokenizer with LowerCaseFilter and StopFilter.
| Field Summary | |
|---|---|
static java.lang.String[] |
ENGLISH_STOP_WORDS
An array containing some common English words that are not usually useful for searching. |
| Constructor Summary | |
|---|---|
StopAnalyzer()
Builds an analyzer which removes words in ENGLISH_STOP_WORDS. |
|
StopAnalyzer(java.io.File stopwordsFile)
Builds an analyzer with the stop words from the given file. |
|
StopAnalyzer(java.io.Reader stopwords)
Builds an analyzer with the stop words from the given reader. |
|
StopAnalyzer(java.util.Set stopWords)
Builds an analyzer with the stop words from the given set. |
|
StopAnalyzer(java.lang.String[] stopWords)
Builds an analyzer which removes words in the provided array. |
|
| Method Summary | |
|---|---|
TokenStream |
reusableTokenStream(java.lang.String fieldName,
java.io.Reader reader)
Creates a TokenStream that is allowed to be re-used from the previous time that the same thread called this method. |
TokenStream |
tokenStream(java.lang.String fieldName,
java.io.Reader reader)
Filters LowerCaseTokenizer with StopFilter. |
| Methods inherited from class org.apache.lucene.analysis.Analyzer |
|---|
close, getPositionIncrementGap, getPreviousTokenStream, setPreviousTokenStream |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String[] ENGLISH_STOP_WORDS
| Constructor Detail |
|---|
public StopAnalyzer()
public StopAnalyzer(java.util.Set stopWords)
public StopAnalyzer(java.lang.String[] stopWords)
public StopAnalyzer(java.io.File stopwordsFile)
throws java.io.IOException
java.io.IOExceptionWordlistLoader.getWordSet(File)
public StopAnalyzer(java.io.Reader stopwords)
throws java.io.IOException
java.io.IOExceptionWordlistLoader.getWordSet(Reader)| Method Detail |
|---|
public TokenStream tokenStream(java.lang.String fieldName,
java.io.Reader reader)
tokenStream in class Analyzer
public TokenStream reusableTokenStream(java.lang.String fieldName,
java.io.Reader reader)
throws java.io.IOException
Analyzer
reusableTokenStream in class Analyzerjava.io.IOException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||