C# Class org.apache.lucene.analysis.sinks.TokenTypeSinkFilter

Adds a token to the sink if it has a specific type.
Inheritance: TeeSinkTokenFilter.SinkFilter
Show file Open project: paulirwin/lucene.net Class Usage Examples

Public Methods

Method Description
TokenTypeSinkFilter ( string typeToMatch )
accept ( org.apache.lucene.util.AttributeSource source ) : bool

Method Details

TokenTypeSinkFilter() public method

public TokenTypeSinkFilter ( string typeToMatch )
typeToMatch string

accept() public method

public accept ( org.apache.lucene.util.AttributeSource source ) : bool
source org.apache.lucene.util.AttributeSource
return bool