C# Class org.apache.lucene.analysis.miscellaneous.PatternKeywordMarkerFilter

Marks terms as keywords via the KeywordAttribute. Each token that matches the provided pattern is marked as a keyword by setting KeywordAttribute#setKeyword(boolean) to true.
Inheritance: KeywordMarkerFilter
显示文件 Open project: paulirwin/lucene.net

Public Methods

Method Description
PatternKeywordMarkerFilter ( TokenStream @in, Pattern pattern )

Create a new PatternKeywordMarkerFilter, that marks the current token as a keyword if the tokens term buffer matches the provided Pattern via the KeywordAttribute.

Method Details

PatternKeywordMarkerFilter() public method

Create a new PatternKeywordMarkerFilter, that marks the current token as a keyword if the tokens term buffer matches the provided Pattern via the KeywordAttribute.
public PatternKeywordMarkerFilter ( TokenStream @in, Pattern pattern )
@in TokenStream
pattern Pattern /// the pattern to apply to the incoming term buffer ///