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>
Inherited Members
Namespace: Lucene.Net.Analysis.Position
Assembly: Lucene.Net.Analysis.Common.dll
Syntax
[Obsolete("(4.4)")]
public class PositionFilterFactory : TokenFilterFactory
Constructors
PositionFilterFactory(IDictionary<string, string>)
Creates a new PositionFilterFactory
Declaration
public PositionFilterFactory(IDictionary<string, string> args)
Parameters
Type | Name | Description |
---|---|---|
IDictionary<string, string> | args |
See Also
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 |