Class SetKeywordMarkerFilter
Marks terms as keywords via the KeywordAttribute. Each token
contained in the provided set is marked as a keyword by setting
IsKeyword to true
.
Inheritance
System.Object
SetKeywordMarkerFilter
Implements
IDisposable
Inherited Members
Namespace: Lucene.Net.Analysis.Miscellaneous
Assembly: Lucene.Net.Analysis.Common.dll
Syntax
public sealed class SetKeywordMarkerFilter : KeywordMarkerFilter, IDisposable
Constructors
| Improve this Doc View SourceSetKeywordMarkerFilter(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 KeywordAttribute.
Declaration
public SetKeywordMarkerFilter(TokenStream in, CharArraySet keywordSet)
Parameters
Type | Name | Description |
---|---|---|
TokenStream | in | TokenStream to filter |
CharArraySet | keywordSet | the keywords set to lookup the current termbuffer |
Methods
| Improve this Doc View SourceIsKeyword()
Declaration
protected override bool IsKeyword()
Returns
Type | Description |
---|---|
System.Boolean |
Overrides
Implements
IDisposable