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 SpellcheckOptions
defaults()
Defines dialect version used for query execution.Defines maximum Levenshtein distance for spelling suggestions.excludedTerms
(String dictionary, String... excludedTerms) DefinesexcludedTerms
of a customdictionary
.includedTerms
(String dictionary, String... includedTerms) DefinesincludedTerms
of 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
DefinesincludedTerms
of a customdictionary
.- Parameters:
dictionary
- custom dictionaryincludedTerms
- included terms- Returns:
- options object
-
excludedTerms
DefinesexcludedTerms
of a customdictionary
.- Parameters:
dictionary
- custom dictionaryexcludedTerms
- excluded terms- Returns:
- options object
-
getDistance
-
getDialect
-
getIncludedTerms
-
getExcludedTerms
-
getExcludedDictionary
-
getIncludedDictionary
-