Class MicrosoftLanguageStemmingTokenizer
java.lang.Object
com.azure.search.documents.indexes.models.LexicalTokenizer
com.azure.search.documents.indexes.models.MicrosoftLanguageStemmingTokenizer
- All Implemented Interfaces:
com.azure.json.JsonSerializable<LexicalTokenizer>
Divides text using language-specific rules and reduces words to their base forms.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of MicrosoftLanguageStemmingTokenizer class. -
Method Summary
Modifier and TypeMethodDescriptionfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of MicrosoftLanguageStemmingTokenizer from the JsonReader.Get the language property: The language to use.Get the maxTokenLength property: The maximum token length.Get the odataType property: A URI fragment specifying the type of tokenizer.Get the isSearchTokenizerUsed property: A value indicating how the tokenizer is used.setIsSearchTokenizerUsed(Boolean isSearchTokenizerUsed) Set the isSearchTokenizerUsed property: A value indicating how the tokenizer is used.Set the language property: The language to use.setMaxTokenLength(Integer maxTokenLength) Set the maxTokenLength property: The maximum token length.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) Methods inherited from class com.azure.search.documents.indexes.models.LexicalTokenizer
getNameMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
MicrosoftLanguageStemmingTokenizer
Creates an instance of MicrosoftLanguageStemmingTokenizer class.- Parameters:
name- the name value to set.
-
-
Method Details
-
getOdataType
Get the odataType property: A URI fragment specifying the type of tokenizer.- Overrides:
getOdataTypein classLexicalTokenizer- Returns:
- the odataType value.
-
getMaxTokenLength
Get the maxTokenLength property: The maximum token length. Tokens longer than the maximum length are split. Maximum token length that can be used is 300 characters. Tokens longer than 300 characters are first split into tokens of length 300 and then each of those tokens is split based on the max token length set. Default is 255.- Returns:
- the maxTokenLength value.
-
setMaxTokenLength
Set the maxTokenLength property: The maximum token length. Tokens longer than the maximum length are split. Maximum token length that can be used is 300 characters. Tokens longer than 300 characters are first split into tokens of length 300 and then each of those tokens is split based on the max token length set. Default is 255.- Parameters:
maxTokenLength- the maxTokenLength value to set.- Returns:
- the MicrosoftLanguageStemmingTokenizer object itself.
-
isSearchTokenizer
Get the isSearchTokenizerUsed property: A value indicating how the tokenizer is used. Set to true if used as the search tokenizer, set to false if used as the indexing tokenizer. Default is false.- Returns:
- the isSearchTokenizerUsed value.
-
setIsSearchTokenizerUsed
Set the isSearchTokenizerUsed property: A value indicating how the tokenizer is used. Set to true if used as the search tokenizer, set to false if used as the indexing tokenizer. Default is false.- Parameters:
isSearchTokenizerUsed- the isSearchTokenizerUsed value to set.- Returns:
- the MicrosoftLanguageStemmingTokenizer object itself.
-
getLanguage
Get the language property: The language to use. The default is English.- Returns:
- the language value.
-
setLanguage
Set the language property: The language to use. The default is English.- Parameters:
language- the language value to set.- Returns:
- the MicrosoftLanguageStemmingTokenizer object itself.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<LexicalTokenizer>- Overrides:
toJsonin classLexicalTokenizer- Throws:
IOException
-
fromJson
public static MicrosoftLanguageStemmingTokenizer fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of MicrosoftLanguageStemmingTokenizer from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of MicrosoftLanguageStemmingTokenizer if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IllegalStateException- If the deserialized JSON object was missing any required properties.IOException- If an error occurs while reading the MicrosoftLanguageStemmingTokenizer.
-