Class DictionaryDecompounderTokenFilter
java.lang.Object
com.azure.search.documents.indexes.models.TokenFilter
com.azure.search.documents.indexes.models.DictionaryDecompounderTokenFilter
Decomposes compound words found in many Germanic languages. This token
filter is implemented using Apache Lucene.
-
Constructor Summary
ConstructorsConstructorDescriptionDictionaryDecompounderTokenFilter
(String name, List<String> wordList) Constructor ofTokenFilter
. -
Method Summary
Modifier and TypeMethodDescriptionGet 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 wordList property: The list of words to match against.Get the onlyLongestMatch 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 onlyLongestMatch property: A value indicating whether to add only the longest matching subword to the output.Methods inherited from class com.azure.search.documents.indexes.models.TokenFilter
getName
-
Constructor Details
-
DictionaryDecompounderTokenFilter
Constructor ofTokenFilter
.- Parameters:
name
- The name of the token filter. It must only contain letters, digits, spaces, dashes or underscores, can only start and end with alphanumeric characters, and is limited to 128 characters.wordList
- The list of words to match against.
-
-
Method Details
-
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 onlyLongestMatch property: A value indicating whether to add only the longest matching subword to the output. Default is false.- Returns:
- the onlyLongestMatch value.
-
setOnlyLongestMatched
Set the onlyLongestMatch property: A value indicating whether to add only the longest matching subword to the output. Default is false.- Parameters:
onlyLongestMatched
- the onlyLongestMatch value to set.- Returns:
- the DictionaryDecompounderTokenFilter object itself.
-