|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.apache.lucene.analysis.TokenStream
org.apache.lucene.analysis.TokenFilter
org.apache.lucene.analysis.StopFilter
Removes stop words from a token stream.
| Field Summary |
| Fields inherited from class org.apache.lucene.analysis.TokenFilter |
input |
| Constructor Summary | |
StopFilter(TokenStream in,
java.util.Hashtable stopTable)
Deprecated. Use StopFilter(TokenStream, Set) instead |
|
StopFilter(TokenStream in,
java.util.Set stopWords)
Constructs a filter which removes words from the input TokenStream that are named in the Set. |
|
StopFilter(TokenStream in,
java.lang.String[] stopWords)
Constructs a filter which removes words from the input TokenStream that are named in the array of words. |
|
| Method Summary | |
static java.util.Set |
makeStopSet(java.lang.String[] stopWords)
Builds a Set from an array of stop words, appropriate for passing into the StopFilter constructor. |
static java.util.Hashtable |
makeStopTable(java.lang.String[] stopWords)
Deprecated. Use makeStopSet(String[]) instead. |
Token |
next()
Returns the next input Token whose termText() is not a stop word. |
| Methods inherited from class org.apache.lucene.analysis.TokenFilter |
close |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public StopFilter(TokenStream in,
java.lang.String[] stopWords)
public StopFilter(TokenStream in,
java.util.Hashtable stopTable)
StopFilter(TokenStream, Set) instead
public StopFilter(TokenStream in,
java.util.Set stopWords)
makeStopSet(java.lang.String[])| Method Detail |
public static final java.util.Hashtable makeStopTable(java.lang.String[] stopWords)
makeStopSet(String[]) instead.
public static final java.util.Set makeStopSet(java.lang.String[] stopWords)
public final Token next()
throws java.io.IOException
next in class TokenStreamjava.io.IOException
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||