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

This TokenFilterĀ emits each incoming token twice once as keyword and once non-keyword, in other words once with KeywordAttribute#setKeyword(boolean) set to true and once set to false. This is useful if used with a stem filter that respects the KeywordAttribute to index the stemmed and the un-stemmed version of a term into the same field.
Inheritance: TokenFilter
Show file Open project: paulirwin/lucene.net

Public Methods

Method Description
KeywordRepeatFilter ( TokenStream input )

Construct a token stream filtering the given input.

incrementToken ( ) : bool
reset ( ) : void

Method Details

KeywordRepeatFilter() public method

Construct a token stream filtering the given input.
public KeywordRepeatFilter ( TokenStream input )
input TokenStream

incrementToken() public method

public incrementToken ( ) : bool
return bool

reset() public method

public reset ( ) : void
return void