Class SetKeywordMarkerFilter
Marks terms as keywords via the Lucene.Net.Analysis.TokenAttributes.IKeywordAttribute. Each token
contained in the provided set is marked as a keyword by setting
Lucene.Net.Analysis.TokenAttributes.IKeywordAttribute.IsKeyword to true
.
Inheritance
Implements
Inherited Members
Namespace: Lucene.Net.Analysis.Miscellaneous
Assembly: Lucene.Net.Analysis.Common.dll
Syntax
public sealed class SetKeywordMarkerFilter : KeywordMarkerFilter, IDisposable
Constructors
SetKeywordMarkerFilter(TokenStream, CharArraySet)
Create a new SetKeywordMarkerFilter, that marks the current token as a keyword if the tokens term buffer is contained in the given set via the Lucene.Net.Analysis.TokenAttributes.IKeywordAttribute.
Declaration
public SetKeywordMarkerFilter(TokenStream @in, CharArraySet keywordSet)
Parameters
Type | Name | Description |
---|---|---|
TokenStream | in | Lucene.Net.Analysis.TokenStream to filter |
CharArraySet | keywordSet | the keywords set to lookup the current termbuffer |
Methods
IsKeyword()
Marks terms as keywords via the Lucene.Net.Analysis.TokenAttributes.IKeywordAttribute. Each token
contained in the provided set is marked as a keyword by setting
Lucene.Net.Analysis.TokenAttributes.IKeywordAttribute.IsKeyword to true
.
Declaration
protected override bool IsKeyword()
Returns
Type | Description |
---|---|
bool |