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.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Lucene.Net.Analysis.Miscellaneous
Assembly: Lucene.Net.Analysis.Common.dll
Syntax
public class LimitTokenPositionFilterFactory : TokenFilterFactory
Constructors
| Improve this Doc View SourceLimitTokenPositionFilterFactory(IDictionary<String, String>)
Creates a new LimitTokenPositionFilterFactory
Declaration
public LimitTokenPositionFilterFactory(IDictionary<string, string> args)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IDictionary<System.String, System.String> | args |
Fields
| Improve this Doc View SourceCONSUME_ALL_TOKENS_KEY
Declaration
public const string CONSUME_ALL_TOKENS_KEY = "consumeAllTokens"
Field Value
Type | Description |
---|---|
System.String |
MAX_TOKEN_POSITION_KEY
Declaration
public const string MAX_TOKEN_POSITION_KEY = "maxTokenPosition"
Field Value
Type | Description |
---|---|
System.String |
Methods
| Improve this Doc View SourceCreate(TokenStream)
Declaration
public override TokenStream Create(TokenStream input)
Parameters
Type | Name | Description |
---|---|---|
Lucene.Net.Analysis.TokenStream | input |
Returns
Type | Description |
---|---|
Lucene.Net.Analysis.TokenStream |