Class EdgeNGramTokenizerDescriptor
Inheritance
EdgeNGramTokenizerDescriptor
Assembly: OpenSearch.Client.dll
Syntax
public class EdgeNGramTokenizerDescriptor : TokenizerDescriptorBase<EdgeNGramTokenizerDescriptor, IEdgeNGramTokenizer>, IDescriptor, IEdgeNGramTokenizer, ITokenizer
Properties
|
Edit this page
View Source
Type
Declaration
protected override string Type { get; }
Property Value
Overrides
Methods
|
Edit this page
View Source
CustomTokenChars(string)
Custom characters that should be treated as part of a token. For example,
setting this to +-_ will make the tokenizer treat the plus, minus and
underscore sign as part of a token.
Requires setting
Custom as part of
TokenChars
Declaration
public EdgeNGramTokenizerDescriptor CustomTokenChars(string customTokenChars)
Parameters
Type |
Name |
Description |
string |
customTokenChars |
|
Returns
|
Edit this page
View Source
MaxGram(int?)
Maximum size in codepoints of a single n-gram
Declaration
public EdgeNGramTokenizerDescriptor MaxGram(int? maxGram)
Parameters
Type |
Name |
Description |
int? |
maxGram |
|
Returns
|
Edit this page
View Source
MinGram(int?)
Minimum size in codepoints of a single n-gram
Declaration
public EdgeNGramTokenizerDescriptor MinGram(int? minGram)
Parameters
Type |
Name |
Description |
int? |
minGram |
|
Returns
|
Edit this page
View Source
TokenChars(params TokenChar[])
Characters classes to keep in the tokens, OpenSearch
will split on characters that don’t belong to any of these classes.
Declaration
public EdgeNGramTokenizerDescriptor TokenChars(params TokenChar[] tokenChars)
Parameters
Returns
|
Edit this page
View Source
TokenChars(IEnumerable<TokenChar>)
Characters classes to keep in the tokens, OpenSearch
will split on characters that don’t belong to any of these classes.
Declaration
public EdgeNGramTokenizerDescriptor TokenChars(IEnumerable<TokenChar> tokenChars)
Parameters
Returns
Implements
Extension Methods