Class LengthFilterFactory
Factory for LengthFilter.
<fieldType name="text_lngth" class="solr.TextField" positionIncrementGap="100">
<analyzer>
<tokenizer class="solr.WhitespaceTokenizerFactory"/>
<filter class="solr.LengthFilterFactory" min="0" max="1" />
</analyzer>
</fieldType>
Inherited Members
Namespace: Lucene.Net.Analysis.Miscellaneous
Assembly: Lucene.Net.Analysis.Common.dll
Syntax
public class LengthFilterFactory : TokenFilterFactory
Constructors
LengthFilterFactory(IDictionary<string, string>)
Creates a new LengthFilterFactory
Declaration
public LengthFilterFactory(IDictionary<string, string> args)
Parameters
Type | Name | Description |
---|---|---|
IDictionary<string, string> | args |
Fields
MAX_KEY
Factory for LengthFilter.
<fieldType name="text_lngth" class="solr.TextField" positionIncrementGap="100">
<analyzer>
<tokenizer class="solr.WhitespaceTokenizerFactory"/>
<filter class="solr.LengthFilterFactory" min="0" max="1" />
</analyzer>
</fieldType>
Declaration
public const string MAX_KEY = "max"
Field Value
Type | Description |
---|---|
string |
MIN_KEY
Factory for LengthFilter.
<fieldType name="text_lngth" class="solr.TextField" positionIncrementGap="100">
<analyzer>
<tokenizer class="solr.WhitespaceTokenizerFactory"/>
<filter class="solr.LengthFilterFactory" min="0" max="1" />
</analyzer>
</fieldType>
Declaration
public const string MIN_KEY = "min"
Field Value
Type | Description |
---|---|
string |
Methods
Create(TokenStream)
Transform the specified input Lucene.Net.Analysis.TokenStream
Declaration
public override TokenStream Create(TokenStream input)
Parameters
Type | Name | Description |
---|---|---|
TokenStream | input |
Returns
Type | Description |
---|---|
TokenStream |