C# Class org.apache.lucene.analysis.miscellaneous.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 {@code consumeAllTokens} property is optional and defaults to {@code false}. See LimitTokenCountFilter for an explanation of it's use.

Inheritance: Lucene.Net.Analysis.Util.TokenFilterFactory
显示文件 Open project: paulirwin/lucene.net

Public Methods

Method Description
LimitTokenCountFilterFactory ( string>.IDictionary args ) : System.Collections.Generic

Creates a new LimitTokenCountFilterFactory

create ( TokenStream input ) : TokenStream

Method Details

LimitTokenCountFilterFactory() public method

Creates a new LimitTokenCountFilterFactory
public LimitTokenCountFilterFactory ( string>.IDictionary args ) : System.Collections.Generic
args string>.IDictionary
return System.Collections.Generic

create() public method

public create ( TokenStream input ) : TokenStream
input TokenStream
return TokenStream