Constructor CommonGramsFilter
CommonGramsFilter(LuceneVersion, TokenStream, CharArraySet)
Construct a token stream filtering the given input using a Set of common words to create bigrams. Outputs both unigrams with position increment and bigrams with position increment 0 type=gram where one or both of the words in a potential bigram are in the set of common words .
Declaration
public CommonGramsFilter(LuceneVersion matchVersion, TokenStream input, CharArraySet commonWords)
Parameters
Type | Name | Description |
---|---|---|
LuceneVersion | matchVersion | lucene compatibility version |
TokenStream | input | TokenStream input in filter chain |
CharArraySet | commonWords | The set of common words. |