C# Class Lucene.Net.Analysis.Stempel.StempelFilter

Transforms the token stream as per the stemming algorithm.

Note: the input to the stemming filter must already be in lower case, so you will need to use Analysis.Core.LowerCaseFilter or Analysis.Core.LowerCaseTokenizer farther down the Tokenizer chain in order for this to work properly!

Inheritance: TokenFilter
Exibir arquivo Open project: apache/lucenenet Class Usage Examples

Public Properties

Property Type Description
DEFAULT_MIN_LENGTH int

Public Methods

Method Description
IncrementToken ( ) : bool

Returns the next input Token, after being stemmed

StempelFilter ( TokenStream @in, StempelStemmer stemmer ) : Lucene.Net.Analysis.Tokenattributes

Create filter using the supplied stemming table.

StempelFilter ( TokenStream @in, StempelStemmer stemmer, int minLength ) : Lucene.Net.Analysis.Tokenattributes

Create filter using the supplied stemming table.

Method Details

IncrementToken() public method

Returns the next input Token, after being stemmed
public IncrementToken ( ) : bool
return bool

StempelFilter() public method

Create filter using the supplied stemming table.
public StempelFilter ( TokenStream @in, StempelStemmer stemmer ) : Lucene.Net.Analysis.Tokenattributes
@in TokenStream
stemmer StempelStemmer stemmer
return Lucene.Net.Analysis.Tokenattributes

StempelFilter() public method

Create filter using the supplied stemming table.
public StempelFilter ( TokenStream @in, StempelStemmer stemmer, int minLength ) : Lucene.Net.Analysis.Tokenattributes
@in TokenStream
stemmer StempelStemmer stemmer
minLength int For performance reasons words shorter than minLength /// characters are not processed, but simply returned.
return Lucene.Net.Analysis.Tokenattributes

Property Details

DEFAULT_MIN_LENGTH public_oe static_oe property

Minimum length of input words to be processed. Shorter words are returned unchanged.
public static int DEFAULT_MIN_LENGTH
return int