Constructor KeepWordFilter
KeepWordFilter(LuceneVersion, Boolean, TokenStream, CharArraySet)
Declaration
[Obsolete("enablePositionIncrements=false is not supported anymore as of Lucene 4.4.")]
public KeepWordFilter(LuceneVersion version, bool enablePositionIncrements, TokenStream in, CharArraySet words)
Parameters
Type | Name | Description |
---|---|---|
LuceneVersion | version | |
System.Boolean | enablePositionIncrements | |
TokenStream | in | |
CharArraySet | words |
KeepWordFilter(LuceneVersion, TokenStream, CharArraySet)
Create a new KeepWordFilter.
NOTE
: The words set passed to this constructor will be directly
used by this filter and should not be modified.
Declaration
public KeepWordFilter(LuceneVersion version, TokenStream in, CharArraySet words)
Parameters
Type | Name | Description |
---|---|---|
LuceneVersion | version | the Lucene match version |
TokenStream | in | the TokenStream to consume |
CharArraySet | words | the words to keep |