Class HunspellStemFilter
Lucene.
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 Keywordtrue
in a previous Lucene.
Inheritance
Implements
Inherited Members
Namespace: Lucene.Net.Analysis.Hunspell
Assembly: Lucene.Net.Analysis.Common.dll
Syntax
public sealed class HunspellStemFilter : TokenFilter, IDisposable
Constructors
| Improve this Doc View SourceHunspellStemFilter(TokenStream, Dictionary)
Create a Hunspell
Declaration
public HunspellStemFilter(TokenStream input, Dictionary dictionary)
Parameters
Type | Name | Description |
---|---|---|
Lucene. |
input | |
Dictionary | dictionary |
See Also
| Improve this Doc View SourceHunspellStemFilter(TokenStream, Dictionary, Boolean)
Create a Hunspell
Declaration
public HunspellStemFilter(TokenStream input, Dictionary dictionary, bool dedup)
Parameters
Type | Name | Description |
---|---|---|
Lucene. |
input | |
Dictionary | dictionary | |
System. |
dedup |
See Also
| Improve this Doc View SourceHunspellStemFilter(TokenStream, Dictionary, Boolean, Boolean)
Creates a new HunspellStemFilter that will stem tokens from the given Lucene.
Declaration
public HunspellStemFilter(TokenStream input, Dictionary dictionary, bool dedup, bool longestOnly)
Parameters
Type | Name | Description |
---|---|---|
Lucene. |
input | Lucene. |
Dictionary | dictionary | Hunspell Dictionary containing the affix rules and words that will be used to stem the tokens |
System. |
dedup | remove duplicates |
System. |
longestOnly | true if only the longest term should be output. |
Methods
| Improve this Doc View SourceIncrementToken()
Declaration
public override bool IncrementToken()
Returns
Type | Description |
---|---|
System. |
Overrides
Reset()
Declaration
public override void Reset()