Class EdgeNGramTokenFilter
Tokenizes the given token into n-grams of given size(s).
This TokenFilter create n-grams from the beginning edge or ending edge of a input token.
As of Lucene 4.4, this filter does not support BACK (you can use ReverseStringFilter up-front and afterward to get the same behavior), handles supplementary characters correctly and does not update offsets anymore.
Inherited Members
Assembly: Lucene.Net.Analysis.Common.dll
Syntax
[Serializable]
public sealed class EdgeNGramTokenFilter : TokenFilter, IDisposable
Constructors
Name | Description |
---|---|
EdgeNGramTokenFilter(LuceneVersion, TokenStream, EdgeNGramTokenFilter.Side, Int32, Int32) | Creates EdgeNGramTokenFilter that can generate n-grams in the sizes of the given range |
EdgeNGramTokenFilter(LuceneVersion, TokenStream, Int32, Int32) | Creates EdgeNGramTokenFilter that can generate n-grams in the sizes of the given range |
EdgeNGramTokenFilter(LuceneVersion, TokenStream, String, Int32, Int32) | Creates EdgeNGramTokenFilter that can generate n-grams in the sizes of the given range |
Fields
Name | Description |
---|---|
DEFAULT_MAX_GRAM_SIZE | |
DEFAULT_MIN_GRAM_SIZE | |
DEFAULT_SIDE |
Methods
Name | Description |
---|---|
GetSide(String) | Get the appropriate EdgeNGramTokenFilter.Side from a string |
IncrementToken() | |
Reset() |