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

Trims leading and trailing whitespace from Tokens in the stream.

As of Lucene 4.4, this filter does not support updateOffsets=true anymore as it can lead to broken token streams.

Inheritance: TokenFilter
Exibir arquivo Open project: paulirwin/lucene.net Class Usage Examples

Public Methods

Method Description
TrimFilter ( System.Version version, TokenStream @in ) : System

Create a new TrimFilter on top of in.

incrementToken ( ) : bool

Private Methods

Method Description
TrimFilter ( System.Version version, TokenStream @in, bool updateOffsets ) : System

Method Details

TrimFilter() public method

Create a new TrimFilter on top of in.
public TrimFilter ( System.Version version, TokenStream @in ) : System
version System.Version
@in TokenStream
return System

incrementToken() public method

public incrementToken ( ) : bool
return bool