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
Afficher le fichier Open project: paulirwin/lucene.net

Méthodes publiques

Méthode Description
LimitTokenPositionFilterFactory ( string>.IDictionary args ) : System.Collections.Generic

Creates a new LimitTokenPositionFilterFactory

create ( TokenStream input ) : TokenStream

Method Details

LimitTokenPositionFilterFactory() public méthode

Creates a new LimitTokenPositionFilterFactory
public LimitTokenPositionFilterFactory ( string>.IDictionary args ) : System.Collections.Generic
args string>.IDictionary
Résultat System.Collections.Generic

create() public méthode

public create ( TokenStream input ) : TokenStream
input TokenStream
Résultat TokenStream