Class HunspellStemFilter
TokenFilter that uses hunspell affix rules and words to stem tokens.
Since hunspell supports a word having multiple stems, this filter can emit
multiple tokens for each consumed token
Note: This filter is aware of the KeywordAttribute. To prevent
certain terms from being passed to the stemmer
IsKeyword should be set to true
in a previous TokenStream.
Note: For including the original term as well as the stemmed version, see
KeywordRepeatFilterFactory
@lucene.experimental
Inherited Members
Assembly: Lucene.Net.Analysis.Common.dll
Syntax
[Serializable]
public sealed class HunspellStemFilter : TokenFilter, IDisposable
Constructors
Name | Description |
---|---|
HunspellStemFilter(TokenStream, Dictionary) | Create a HunspellStemFilter outputting all possible stems. |
HunspellStemFilter(TokenStream, Dictionary, Boolean) | Create a HunspellStemFilter outputting all possible stems. |
HunspellStemFilter(TokenStream, Dictionary, Boolean, Boolean) | Creates a new HunspellStemFilter that will stem tokens from the given TokenStream using affix rules in the provided Dictionary |
Methods
Name | Description |
---|---|
IncrementToken() | |
Reset() |