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 |
log
args, 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, warnDeprecated
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getArgs
private 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)
TokenFilterFactory
init
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 TokenFilterFactory
init
in class BaseTokenStreamFactory
public void inform(ResourceLoader loader)
inform
in interface ResourceLoaderAware
public boolean isEnablePositionIncrements()
public boolean isIgnoreCase()
public java.util.Set<?> getStopWords()
public org.apache.lucene.analysis.StopFilter create(org.apache.lucene.analysis.TokenStream input)
TokenFilterFactory
create
in interface TokenFilterFactory