C# Class org.apache.lucene.analysis.ngram.NGramTokenizerFactory

Factory for NGramTokenizer.
 <fieldType name="text_ngrm" class="solr.TextField" positionIncrementGap="100"> <analyzer> <tokenizer class="solr.NGramTokenizerFactory" minGramSize="1" maxGramSize="2"/> </analyzer> </fieldType>
Inheritance: Lucene.Net.Analysis.Util.TokenizerFactory
Show file Open project: paulirwin/lucene.net

Public Methods

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

Creates a new NGramTokenizerFactory

create ( AttributeFactory factory, Reader input ) : Tokenizer

Creates the TokenStream of n-grams from the given Reader and AttributeFactory.

Method Details

NGramTokenizerFactory() public method

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

create() public method

Creates the TokenStream of n-grams from the given Reader and AttributeFactory.
public create ( AttributeFactory factory, Reader input ) : Tokenizer
factory AttributeFactory
input Reader
return Tokenizer