Class PatternKeywordMarkerFilter
Marks terms as keywords via the Lucene.Net.Analysis.TokenAttributes.IKeywordAttribute. Each token
that matches the provided pattern 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 PatternKeywordMarkerFilter : KeywordMarkerFilter, IDisposable
  Constructors
PatternKeywordMarkerFilter(TokenStream, Regex)
Create a new PatternKeywordMarkerFilter, that marks the current token as a keyword if the tokens term buffer matches the provided Regex via the Lucene.Net.Analysis.TokenAttributes.IKeywordAttribute.
Declaration
public PatternKeywordMarkerFilter(TokenStream @in, Regex pattern)
  Parameters
| Type | Name | Description | 
|---|---|---|
| TokenStream | in | Lucene.Net.Analysis.TokenStream to filter  | 
      
| Regex | pattern | the pattern to apply to the incoming term buffer  | 
      
Methods
IsKeyword()
Marks terms as keywords via the Lucene.Net.Analysis.TokenAttributes.IKeywordAttribute. Each token
that matches the provided pattern is marked as a keyword by setting
Lucene.Net.Analysis.TokenAttributes.IKeywordAttribute.IsKeyword to true.
Declaration
protected override bool IsKeyword()
  Returns
| Type | Description | 
|---|---|
| bool |