Class EdgeNGramTokenizer
java.lang.Object
com.azure.search.documents.indexes.models.LexicalTokenizer
com.azure.search.documents.indexes.models.EdgeNGramTokenizer
Tokenizes the input from an edge into n-grams of the given size(s). This
tokenizer is implemented using Apache Lucene.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the maxGram property: The maximum n-gram length.Get the minGram property: The minimum n-gram length.Get the tokenChars property: Character classes to keep in the tokens.setMaxGram
(Integer maxGram) Set the maxGram property: The maximum n-gram length.setMinGram
(Integer minGram) Set the minGram property: The minimum n-gram length.setTokenChars
(TokenCharacterKind... tokenChars) Set the tokenChars property: Character classes to keep in the tokens.setTokenChars
(List<TokenCharacterKind> tokenChars) Set the tokenChars property: Character classes to keep in the tokens.Methods inherited from class com.azure.search.documents.indexes.models.LexicalTokenizer
getName
-
Constructor Details
-
EdgeNGramTokenizer
Constructor ofLexicalTokenizer
.- Parameters:
name
- The name of the tokenizer. It must only contain letters, digits, spaces, dashes or underscores, can only start and end with alphanumeric characters, and is limited to 128 characters.
-
-
Method Details
-
getMinGram
Get the minGram property: The minimum n-gram length. Default is 1. Maximum is 300. Must be less than the value of maxGram.- Returns:
- the minGram value.
-
setMinGram
Set the minGram property: The minimum n-gram length. Default is 1. Maximum is 300. Must be less than the value of maxGram.- Parameters:
minGram
- the minGram value to set.- Returns:
- the EdgeNGramTokenizer object itself.
-
getMaxGram
Get the maxGram property: The maximum n-gram length. Default is 2. Maximum is 300.- Returns:
- the maxGram value.
-
setMaxGram
Set the maxGram property: The maximum n-gram length. Default is 2. Maximum is 300.- Parameters:
maxGram
- the maxGram value to set.- Returns:
- the EdgeNGramTokenizer object itself.
-
getTokenChars
Get the tokenChars property: Character classes to keep in the tokens.- Returns:
- the tokenChars value.
-
setTokenChars
Set the tokenChars property: Character classes to keep in the tokens.- Parameters:
tokenChars
- the tokenChars value to set.- Returns:
- the EdgeNGramTokenizer object itself.
-
setTokenChars
Set the tokenChars property: Character classes to keep in the tokens.- Parameters:
tokenChars
- the tokenChars value to set.- Returns:
- the EdgeNGramTokenizer object itself.
-