public class SugAddArgs extends Object
This class provides a builder pattern for constructing arguments for adding suggestions to an auto-complete dictionary. The FT.SUGADD command adds a suggestion string to an auto-complete suggestion dictionary with a specified score.
| Modifier and Type | Class and Description |
|---|---|
static class |
SugAddArgs.Builder
Builder entry points for
SugAddArgs. |
| Constructor and Description |
|---|
SugAddArgs() |
| Modifier and Type | Method and Description |
|---|---|
void |
build(CommandArgs<?,?> args)
Builds the arguments and appends them to the
CommandArgs. |
SugAddArgs |
incr()
Increment the existing entry of the suggestion by the given score, instead of replacing the score.
|
SugAddArgs |
payload(String payload)
Deprecated.
since 7.8, there is no replacement. The
PAYLOAD argument of FT.SUGADD is deprecated by Redis
since RediSearch 2.0.0. |
public SugAddArgs incr()
this SugAddArgs.@Deprecated public SugAddArgs payload(String payload)
PAYLOAD argument of FT.SUGADD is deprecated by Redis
since RediSearch 2.0.0.payload - the payload to save with the suggestion.this SugAddArgs.public void build(CommandArgs<?,?> args)
CommandArgs.args - the command arguments to append to.Copyright © 2026 lettuce.io. All rights reserved.