K - Key type.V - Value type.public class SpellCheckArgs<K,V> extends Object
SpellCheckArgs is a mutable object and instances should be used only once to avoid shared mutable state.
| Modifier and Type | Class and Description |
|---|---|
static class |
SpellCheckArgs.Builder
Builder entry points for
SpellCheckArgs. |
| Constructor and Description |
|---|
SpellCheckArgs() |
| Modifier and Type | Method and Description |
|---|---|
void |
build(CommandArgs<K,V> args)
Builds the arguments and appends them to the
CommandArgs. |
SpellCheckArgs<K,V> |
dialect(long dialect)
Set the dialect version under which to execute the query.
|
SpellCheckArgs<K,V> |
distance(long distance)
Set maximum Levenshtein distance for spelling suggestions (default: 1, max: 4).
|
SpellCheckArgs<K,V> |
termsExclude(K dictionary,
V... terms)
Exclude terms from a custom dictionary from spelling suggestions.
|
SpellCheckArgs<K,V> |
termsInclude(K dictionary,
V... terms)
Include terms from a custom dictionary as potential spelling suggestions.
|
public SpellCheckArgs<K,V> distance(long distance)
distance - the maximum distance.this SpellCheckArgs.public SpellCheckArgs<K,V> dialect(long dialect)
dialect - the dialect version.this SpellCheckArgs.@SafeVarargs public final SpellCheckArgs<K,V> termsInclude(K dictionary, V... terms)
dictionary - the dictionary name.terms - optional terms to include from the dictionary.this SpellCheckArgs.@SafeVarargs public final SpellCheckArgs<K,V> termsExclude(K dictionary, V... terms)
dictionary - the dictionary name.terms - optional terms to exclude from the dictionary.this SpellCheckArgs.public void build(CommandArgs<K,V> args)
CommandArgs.args - the command arguments to append to.Copyright © 2025 lettuce.io. All rights reserved.