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
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Assembly: Lucene.Net.Analysis.Common.dll
Syntax
[Obsolete("(4.4)")]
[Serializable]
public class PositionFilterFactory : TokenFilterFactory
Constructors
Name | Description |
---|---|
PositionFilterFactory(IDictionary<String, String>) | Creates a new PositionFilterFactory |
Methods
Name | Description |
---|---|
Create(TokenStream) |