public class TrimFilterFactory extends BaseTokenFilterFactory
TrimFilter.
<fieldType name="text_trm" class="solr.TextField" positionIncrementGap="100">
<analyzer>
<tokenizer class="solr.NGramTokenizerFactory"/>
<filter class="solr.TrimFilterFactory" updateOffsets="false"/>
</analyzer>
</fieldType>TrimFilter| Modifier and Type | Field and Description |
|---|---|
protected boolean |
updateOffsets |
logargs, luceneMatchVersion| Constructor and Description |
|---|
TrimFilterFactory() |
| Modifier and Type | Method and Description |
|---|---|
TrimFilter |
create(org.apache.lucene.analysis.TokenStream input)
Transform the specified input TokenStream
|
void |
init(java.util.Map<java.lang.String,java.lang.String> args)
init will be called just once, immediately after creation. |
assureMatchVersion, getArgs, getBoolean, getBoolean, getInt, getInt, getInt, getSnowballWordSet, getWordSet, warnDeprecatedclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetArgspublic 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 TrimFilter create(org.apache.lucene.analysis.TokenStream input)
TokenFilterFactory