public class SpellCheckArgs 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<?,?> args)
Builds the arguments and appends them to the
CommandArgs. |
SpellCheckArgs |
dialect(long dialect)
Set the dialect version under which to execute the query.
|
SpellCheckArgs |
distance(long distance)
Set maximum Levenshtein distance for spelling suggestions (default: 1, max: 4).
|
SpellCheckArgs |
termsExclude(String dictionary,
String... terms)
Exclude terms from a custom dictionary from spelling suggestions.
|
SpellCheckArgs |
termsInclude(String dictionary,
String... terms)
Include terms from a custom dictionary as potential spelling suggestions.
|
public SpellCheckArgs distance(long distance)
distance - the maximum distance.this SpellCheckArgs.public SpellCheckArgs dialect(long dialect)
dialect - the dialect version.this SpellCheckArgs.public SpellCheckArgs termsInclude(String dictionary, String... terms)
dictionary - the dictionary name.terms - optional terms to include from the dictionary.this SpellCheckArgs.public SpellCheckArgs termsExclude(String dictionary, String... terms)
dictionary - the dictionary name.terms - optional terms to exclude from the dictionary.this SpellCheckArgs.public void build(CommandArgs<?,?> args)
CommandArgs.args - the command arguments to append to.Copyright © 2026 lettuce.io. All rights reserved.