Class PositionFilterFactory
Factory for PositionFilter.
Set the positionIncrement of all tokens to the "positionIncrement", except the first return token which retains its
original positionIncrement value. The default positionIncrement value is zero.
<fieldType name="text_position" class="solr.TextField" positionIncrementGap="100">
<analyzer>
<tokenizer class="solr.WhitespaceTokenizerFactory"/>
<filter class="solr.PositionFilterFactory" positionIncrement="0"/>
</analyzer>
</fieldType>
Inheritance
System.Object
PositionFilterFactory
Assembly: Lucene.Net.Analysis.Common.dll
Syntax
public class PositionFilterFactory : TokenFilterFactory
Constructors
|
Improve this Doc
View Source
PositionFilterFactory(IDictionary<String, String>)
Declaration
public PositionFilterFactory(IDictionary<string, string> args)
Parameters
Type |
Name |
Description |
IDictionary<System.String, System.String> |
args |
|
Methods
|
Improve this Doc
View Source
Create(TokenStream)
Declaration
public override TokenStream Create(TokenStream input)
Parameters
Returns
Overrides
See Also