C# Class Lucene.Net.Analysis.Miscellaneous.KeepWordFilter

A TokenFilter that only keeps tokens with text contained in the required words. This filter behaves like the inverse of StopFilter. @since solr 1.3
Inheritance: Lucene.Net.Analysis.Util.FilteringTokenFilter
ファイルを表示 Open project: apache/lucenenet Class Usage Examples

Public Methods

Method Description
KeepWordFilter ( LuceneVersion version, TokenStream @in, CharArraySet words ) : Lucene.Net.Analysis.Tokenattributes

Create a new KeepWordFilter.

NOTE: The words set passed to this constructor will be directly used by this filter and should not be modified.

Protected Methods

Method Description
Accept ( ) : bool

Private Methods

Method Description
KeepWordFilter ( LuceneVersion version, bool enablePositionIncrements, TokenStream @in, CharArraySet words ) : Lucene.Net.Analysis.Tokenattributes

Method Details

Accept() protected method

protected Accept ( ) : bool
return bool

KeepWordFilter() public method

Create a new KeepWordFilter.

NOTE: The words set passed to this constructor will be directly used by this filter and should not be modified.

public KeepWordFilter ( LuceneVersion version, TokenStream @in, CharArraySet words ) : Lucene.Net.Analysis.Tokenattributes
version LuceneVersion the Lucene match version
@in TokenStream
words CharArraySet the words to keep
return Lucene.Net.Analysis.Tokenattributes