public class LengthFilterFactory extends BaseTokenFilterFactory
LengthFilter.
<fieldType name="text_lngth" class="solr.TextField" positionIncrementGap="100">
<analyzer>
<tokenizer class="solr.WhitespaceTokenizerFactory"/>
<filter class="solr.LengthFilterFactory" min="0" max="1" enablePositionIncrements="false"/>
</analyzer>
</fieldType>| Modifier and Type | Field and Description |
|---|---|
(package private) boolean |
enablePositionIncrements |
(package private) int |
max |
static java.lang.String |
MAX_KEY |
(package private) int |
min |
static java.lang.String |
MIN_KEY |
logargs, luceneMatchVersion| Constructor and Description |
|---|
LengthFilterFactory() |
| Modifier and Type | Method and Description |
|---|---|
org.apache.lucene.analysis.LengthFilter |
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, waitgetArgsint min
int max
boolean enablePositionIncrements
public static final java.lang.String MIN_KEY
public static final java.lang.String MAX_KEY
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 org.apache.lucene.analysis.LengthFilter create(org.apache.lucene.analysis.TokenStream input)
TokenFilterFactory