Package org.redisson.api.search
Class SpellcheckOptions
java.lang.Object
org.redisson.api.search.SpellcheckOptions
Spellcheck options for
RSearch.spellcheck(String, String, SpellcheckOptions) method- Author:
- Nikita Koksharov
-
Method Summary
Modifier and TypeMethodDescriptionstatic SpellcheckOptionsdefaults()Defines dialect version used for query execution.Defines maximum Levenshtein distance for spelling suggestions.excludedTerms(String dictionary, String... excludedTerms) DefinesexcludedTermsof a customdictionary.includedTerms(String dictionary, String... includedTerms) DefinesincludedTermsof a customdictionary.
-
Method Details
-
defaults
-
distance
Defines maximum Levenshtein distance for spelling suggestions. Allowed values from 1 to 4.Default is
1- Parameters:
distance- maximum Levenshtein distance- Returns:
- options object
-
dialect
Defines dialect version used for query execution.- Parameters:
dialect- dialect version- Returns:
- options object
-
includedTerms
DefinesincludedTermsof a customdictionary.- Parameters:
dictionary- custom dictionaryincludedTerms- included terms- Returns:
- options object
-
excludedTerms
DefinesexcludedTermsof a customdictionary.- Parameters:
dictionary- custom dictionaryexcludedTerms- excluded terms- Returns:
- options object
-
getDistance
-
getDialect
-
getIncludedTerms
-
getExcludedTerms
-
getExcludedDictionary
-
getIncludedDictionary
-