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

Marks terms as keywords via the KeywordAttribute. Each token contained in the provided set is marked as a keyword by setting KeywordAttribute#setKeyword(boolean) to true.
Inheritance: KeywordMarkerFilter
Datei anzeigen Open project: apache/lucenenet Class Usage Examples

Public Methods

Method Description
SetKeywordMarkerFilter ( TokenStream @in, CharArraySet keywordSet ) : Lucene.Net.Analysis.Tokenattributes

Create a new KeywordSetMarkerFilter, that marks the current token as a keyword if the tokens term buffer is contained in the given set via the KeywordAttribute.

Method Details

SetKeywordMarkerFilter() public method

Create a new KeywordSetMarkerFilter, that marks the current token as a keyword if the tokens term buffer is contained in the given set via the KeywordAttribute.
public SetKeywordMarkerFilter ( TokenStream @in, CharArraySet keywordSet ) : Lucene.Net.Analysis.Tokenattributes
@in TokenStream
keywordSet CharArraySet /// the keywords set to lookup the current termbuffer
return Lucene.Net.Analysis.Tokenattributes