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

Inheritance: Lucene.Net.Analysis.Util.TokenFilterFactory
Mostra file Open project: paulirwin/lucene.net

Public Methods

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

Creates a new LimitTokenPositionFilterFactory

create ( TokenStream input ) : TokenStream

Method Details

LimitTokenPositionFilterFactory() public method

Creates a new LimitTokenPositionFilterFactory
public LimitTokenPositionFilterFactory ( 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