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.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 LimitTokenCountFilterFactory : TokenFilterFactory
Constructors
Name | Description |
---|---|
LimitTokenCountFilterFactory(IDictionary<String, String>) | Creates a new LimitTokenCountFilterFactory |
Fields
Name | Description |
---|---|
CONSUME_ALL_TOKENS_KEY | |
MAX_TOKEN_COUNT_KEY |
Methods
Name | Description |
---|---|
Create(TokenStream) |