Constructor NGramTokenFilter
NGramTokenFilter(LuceneVersion, TokenStream, Int32, Int32)
Creates NGramTokenFilter with given min and max n-grams.
Declaration
public NGramTokenFilter(LuceneVersion version, TokenStream input, int minGram, int maxGram)
Parameters
Type | Name | Description |
---|---|---|
LuceneVersion | version | Lucene version to enable correct position increments. See NGramTokenFilter for details. |
TokenStream | input | TokenStream holding the input to be tokenized |
System.Int32 | minGram | the smallest n-gram to generate |
System.Int32 | maxGram | the largest n-gram to generate |
NGramTokenFilter(LuceneVersion, TokenStream)
Creates NGramTokenFilter with default min and max n-grams.
Declaration
public NGramTokenFilter(LuceneVersion version, TokenStream input)
Parameters
Type | Name | Description |
---|---|---|
LuceneVersion | version | Lucene version to enable correct position increments. See NGramTokenFilter for details. |
TokenStream | input | TokenStream holding the input to be tokenized |