Class LimitTokenCountFilterFactory
Factory for LimitTokenCountFilter.
<fieldType name="text_lngthcnt" class="solr.TextField" positionIncrementGap="100">
<analyzer>
<tokenizer class="solr.WhitespaceTokenizerFactory"/>
<filter class="solr.LimitTokenCountFilterFactory" maxTokenCount="10" consumeAllTokens="false" />
</analyzer>
</fieldType>
The Lucene.Net.Analysis.Miscellaneous.LimitTokenCountFilterFactory.consumeAllTokens property is optional and defaults to false
.
See LimitTokenCountFilter for an explanation of it's use.
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 LimitTokenCountFilterFactory : TokenFilterFactory
Constructors
| Improve this Doc View SourceLimitTokenCountFilterFactory(IDictionary<String, String>)
Creates a new LimitTokenCountFilterFactory
Declaration
public LimitTokenCountFilterFactory(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_COUNT_KEY
Declaration
public const string MAX_TOKEN_COUNT_KEY = "maxTokenCount"
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 |