public class StopFilterFactory extends BaseTokenFilterFactory implements ResourceLoaderAware
StopFilter.
<fieldType name="text_stop" class="solr.TextField" positionIncrementGap="100" autoGeneratePhraseQueries="true">
<analyzer>
<tokenizer class="solr.WhitespaceTokenizerFactory"/>
<filter class="solr.StopFilterFactory" ignoreCase="true"
words="stopwords.txt" enablePositionIncrements="true"/>
</analyzer>
</fieldType>| Modifier and Type | Field and Description |
|---|---|
private boolean |
enablePositionIncrements |
private boolean |
ignoreCase |
private org.apache.lucene.analysis.CharArraySet |
stopWords |
logargs, luceneMatchVersion| Constructor and Description |
|---|
StopFilterFactory() |
| Modifier and Type | Method and Description |
|---|---|
org.apache.lucene.analysis.StopFilter |
create(org.apache.lucene.analysis.TokenStream input)
Transform the specified input TokenStream
|
java.util.Set<?> |
getStopWords() |
void |
inform(ResourceLoader loader) |
void |
init(java.util.Map<java.lang.String,java.lang.String> args)
init will be called just once, immediately after creation. |
boolean |
isEnablePositionIncrements() |
boolean |
isIgnoreCase() |
assureMatchVersion, getArgs, getBoolean, getBoolean, getInt, getInt, getInt, getSnowballWordSet, getWordSet, warnDeprecatedclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetArgsprivate org.apache.lucene.analysis.CharArraySet stopWords
private boolean ignoreCase
private boolean enablePositionIncrements
public void init(java.util.Map<java.lang.String,java.lang.String> args)
TokenFilterFactoryinit will be called just once, immediately after creation.
The args are user-level initialization parameters that may be specified when declaring the factory in the schema.xml
init in interface TokenFilterFactoryinit in class BaseTokenStreamFactorypublic void inform(ResourceLoader loader)
inform in interface ResourceLoaderAwarepublic boolean isEnablePositionIncrements()
public boolean isIgnoreCase()
public java.util.Set<?> getStopWords()
public org.apache.lucene.analysis.StopFilter create(org.apache.lucene.analysis.TokenStream input)
TokenFilterFactorycreate in interface TokenFilterFactory