Class DictionaryDecompounderTokenFilter
java.lang.Object
com.azure.search.documents.indexes.models.TokenFilter
com.azure.search.documents.indexes.models.DictionaryDecompounderTokenFilter
- All Implemented Interfaces:
com.azure.json.JsonSerializable<TokenFilter>
Decomposes compound words found in many Germanic languages. This token filter is implemented using Apache Lucene.
-
Constructor Summary
ConstructorsConstructorDescriptionDictionaryDecompounderTokenFilter(String name, List<String> wordList) Creates an instance of DictionaryDecompounderTokenFilter class. -
Method Summary
Modifier and TypeMethodDescriptionfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of DictionaryDecompounderTokenFilter from the JsonReader.Get the maxSubwordSize property: The maximum subword size.Get the minSubwordSize property: The minimum subword size.Get the minWordSize property: The minimum word size.Get the odataType property: A URI fragment specifying the type of token filter.Get the wordList property: The list of words to match against.Get the onlyLongestMatched property: A value indicating whether to add only the longest matching subword to the output.setMaxSubwordSize(Integer maxSubwordSize) Set the maxSubwordSize property: The maximum subword size.setMinSubwordSize(Integer minSubwordSize) Set the minSubwordSize property: The minimum subword size.setMinWordSize(Integer minWordSize) Set the minWordSize property: The minimum word size.setOnlyLongestMatched(Boolean onlyLongestMatched) Set the onlyLongestMatched property: A value indicating whether to add only the longest matching subword to the output.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) Methods inherited from class com.azure.search.documents.indexes.models.TokenFilter
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
-
DictionaryDecompounderTokenFilter
Creates an instance of DictionaryDecompounderTokenFilter class.- Parameters:
name- the name value to set.wordList- the wordList value to set.
-
-
Method Details
-
getOdataType
Get the odataType property: A URI fragment specifying the type of token filter.- Overrides:
getOdataTypein classTokenFilter- Returns:
- the odataType value.
-
getWordList
Get the wordList property: The list of words to match against.- Returns:
- the wordList value.
-
getMinWordSize
Get the minWordSize property: The minimum word size. Only words longer than this get processed. Default is 5. Maximum is 300.- Returns:
- the minWordSize value.
-
setMinWordSize
Set the minWordSize property: The minimum word size. Only words longer than this get processed. Default is 5. Maximum is 300.- Parameters:
minWordSize- the minWordSize value to set.- Returns:
- the DictionaryDecompounderTokenFilter object itself.
-
getMinSubwordSize
Get the minSubwordSize property: The minimum subword size. Only subwords longer than this are outputted. Default is 2. Maximum is 300.- Returns:
- the minSubwordSize value.
-
setMinSubwordSize
Set the minSubwordSize property: The minimum subword size. Only subwords longer than this are outputted. Default is 2. Maximum is 300.- Parameters:
minSubwordSize- the minSubwordSize value to set.- Returns:
- the DictionaryDecompounderTokenFilter object itself.
-
getMaxSubwordSize
Get the maxSubwordSize property: The maximum subword size. Only subwords shorter than this are outputted. Default is 15. Maximum is 300.- Returns:
- the maxSubwordSize value.
-
setMaxSubwordSize
Set the maxSubwordSize property: The maximum subword size. Only subwords shorter than this are outputted. Default is 15. Maximum is 300.- Parameters:
maxSubwordSize- the maxSubwordSize value to set.- Returns:
- the DictionaryDecompounderTokenFilter object itself.
-
isOnlyLongestMatched
Get the onlyLongestMatched property: A value indicating whether to add only the longest matching subword to the output. Default is false.- Returns:
- the onlyLongestMatched value.
-
setOnlyLongestMatched
Set the onlyLongestMatched property: A value indicating whether to add only the longest matching subword to the output. Default is false.- Parameters:
onlyLongestMatched- the onlyLongestMatched value to set.- Returns:
- the DictionaryDecompounderTokenFilter object itself.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<TokenFilter>- Overrides:
toJsonin classTokenFilter- Throws:
IOException
-
fromJson
public static DictionaryDecompounderTokenFilter fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of DictionaryDecompounderTokenFilter from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of DictionaryDecompounderTokenFilter 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 DictionaryDecompounderTokenFilter.
-