Class LimitTokenPositionFilterFactory
Factory for LimitTokenPositionFilter.
<fieldType name="text_limit_pos" class="solr.TextField" positionIncrementGap="100">
<analyzer>
<tokenizer class="solr.WhitespaceTokenizerFactory"/>
<filter class="solr.LimitTokenPositionFilterFactory" maxTokenPosition="3" consumeAllTokens="false" />
</analyzer>
</fieldType>
The Lucene.Net.Analysis.Miscellaneous.LimitTokenPositionFilterFactory.consumeAllTokens property is optional and defaults to false
.
See LimitTokenPositionFilter for an explanation of its use.
Inheritance
System.Object
LimitTokenPositionFilterFactory
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
[Serializable]
public class LimitTokenPositionFilterFactory : TokenFilterFactory
Constructors
Name | Description |
---|---|
LimitTokenPositionFilterFactory(IDictionary<String, String>) | Creates a new LimitTokenPositionFilterFactory |
Fields
Name | Description |
---|---|
CONSUME_ALL_TOKENS_KEY | |
MAX_TOKEN_POSITION_KEY |
Methods
Name | Description |
---|---|
Create(TokenStream) |