C# Class Lucene.Net.Analysis.Ngram.NGramTokenFilter

Inheritance: TokenFilter
Show file Open project: apache/lucenenet Class Usage Examples

Public Methods

Method Description
IncrementToken ( ) : bool

Returns the next token in the stream, or null at EOS.

NGramTokenFilter ( LuceneVersion version, TokenStream input ) : Lucene.Net.Analysis.Miscellaneous

Creates NGramTokenFilter with default min and max n-grams.

NGramTokenFilter ( LuceneVersion version, TokenStream input, int minGram, int maxGram ) : Lucene.Net.Analysis.Miscellaneous

Creates NGramTokenFilter with given min and max n-grams.

Reset ( ) : void

Method Details

IncrementToken() public method

Returns the next token in the stream, or null at EOS.
public IncrementToken ( ) : bool
return bool

NGramTokenFilter() public method

Creates NGramTokenFilter with default min and max n-grams.
public NGramTokenFilter ( LuceneVersion version, TokenStream input ) : Lucene.Net.Analysis.Miscellaneous
version LuceneVersion Lucene version to enable correct position increments. /// See above for details.
input TokenStream holding the input to be tokenized
return Lucene.Net.Analysis.Miscellaneous

NGramTokenFilter() public method

Creates NGramTokenFilter with given min and max n-grams.
public NGramTokenFilter ( LuceneVersion version, TokenStream input, int minGram, int maxGram ) : Lucene.Net.Analysis.Miscellaneous
version LuceneVersion Lucene version to enable correct position increments. /// See above for details.
input TokenStream holding the input to be tokenized
minGram int the smallest n-gram to generate
maxGram int the largest n-gram to generate
return Lucene.Net.Analysis.Miscellaneous

Reset() public method

public Reset ( ) : void
return void