sugget(
key: str, // The suggestion dictionary key
prefix: str, // The prefix to search for
fuzzy: bool, // Whether to use fuzzy matching
num: int, // Maximum number of suggestions to return
with_scores: bool, // Whether to include scores
with_payloads: bool // Whether to include payloads
) → List[Union[str, Tuple]] // List of suggestions
Possible errors
See Redis error messages for what each error means. Other errors, such as connection errors, aren't listed.
client.ft.sugGet(
key: RedisArgument, // The suggestion dictionary key
prefix: RedisArgument, // The prefix to search for
options: FTSugGetOptions // Optional get options
) → Array<string> | Array<FTSuggestion> // List of suggestions
Possible errors
- WRONGTYPE:
SimpleError (test with err.message.startsWith('WRONGTYPE'))
See Redis error messages for what each error means. Other errors, such as connection errors, aren't listed.
ioredis has no dedicated method for this command. Send it with call.
ftSugGet(
key: String, // The suggestion dictionary key
prefix: String // The prefix to search for
) → List<String> // List of suggestions
ftSugGetWithScores(
key: String, // The suggestion dictionary key
prefix: String, // The prefix to search for
max: int // Maximum number of suggestions
) → List<Suggestion> // List of suggestions with scores
Possible errors
- WRONGTYPE:
JedisDataException
See Redis error messages for what each error means. Other errors, such as connection errors, aren't listed.
ftSugget(
key: K, // the suggestion dictionary key
prefix: String // the prefix to complete on
) → List<Suggestion> // a list of suggestions matching the prefix
ftSugget(
key: K, // the suggestion dictionary key
prefix: String, // the prefix to complete on
args: SugGetArgs // the suggestion get arguments (FUZZY, WITHSCORES, deprecated WITHPAYLOADS, MAX)
) → List<Suggestion> // a list of suggestions matching the prefix, optionally with scores and payloads
Possible errors
- WRONGTYPE:
RedisCommandExecutionException
See Redis error messages for what each error means. Other errors, such as connection errors, aren't listed.
ftSugget(
key: K, // the suggestion dictionary key
prefix: String // the prefix to complete on
) → RedisFuture<List<Suggestion>> // a list of suggestions matching the prefix
ftSugget(
key: K, // the suggestion dictionary key
prefix: String, // the prefix to complete on
args: SugGetArgs // the suggestion get arguments (FUZZY, WITHSCORES, deprecated WITHPAYLOADS, MAX)
) → RedisFuture<List<Suggestion>> // a list of suggestions matching the prefix, optionally with scores and payloads
Possible errors
- WRONGTYPE:
RedisCommandExecutionException
See Redis error messages for what each error means. Other errors, such as connection errors, aren't listed.
ftSugget(
key: K, // the suggestion dictionary key
prefix: String // the prefix to complete on
) → Flux<Suggestion> // a list of suggestions matching the prefix
ftSugget(
key: K, // the suggestion dictionary key
prefix: String, // the prefix to complete on
args: SugGetArgs // the suggestion get arguments (FUZZY, WITHSCORES, deprecated WITHPAYLOADS, MAX)
) → Flux<Suggestion> // a list of suggestions matching the prefix, optionally with scores and payloads
Possible errors
- WRONGTYPE:
RedisCommandExecutionException
See Redis error messages for what each error means. Other errors, such as connection errors, aren't listed.
FTSugGet(
ctx: context.Context,
key: string, // The suggestion dictionary key
prefix: string // The prefix to search for
) → *StringSliceCmd // List of suggestions
FTSugGetWithArgs(
ctx: context.Context,
key: string, // The suggestion dictionary key
prefix: string, // The prefix to search for
options: *FTSugGetOptions // Get options
) → *FTSugGetCmd // List of suggestions
Possible errors
- WRONGTYPE:
redis.Error (test with redis.HasErrorPrefix(err, "WRONGTYPE"))
See Redis error messages for what each error means. Other errors, such as connection errors, aren't listed.
SugGet(
key: string, // The suggestion dictionary key
prefix: string, // The prefix to search for
fuzzy: bool, // Whether to use fuzzy matching
withPayloads: bool, // Whether to return payloads
max: int? // Maximum number of suggestions to return
) → List<string> // List of suggestions
SugGetWithScores(
key: string, // The suggestion dictionary key
prefix: string, // The prefix to search for
fuzzy: bool, // Whether to use fuzzy matching
withPayloads: bool, // Whether to return payloads
max: int? // Maximum number of suggestions to return
) → List<Tuple<string, double>> // List of suggestions with scores
Possible errors
- WRONGTYPE:
RedisServerException
See Redis error messages for what each error means. Other errors, such as connection errors, aren't listed.
SugGetAsync(
key: string, // The suggestion dictionary key
prefix: string, // The prefix to search for
fuzzy: bool, // Whether to use fuzzy matching
withPayloads: bool, // Whether to return payloads
max: int? // Maximum number of suggestions to return
) → Task<List<string>> // List of suggestions
SugGetWithScoresAsync(
key: string, // The suggestion dictionary key
prefix: string, // The prefix to search for
fuzzy: bool, // Whether to use fuzzy matching
withPayloads: bool, // Whether to return payloads
max: int? // Maximum number of suggestions to return
) → Task<List<Tuple<string, double>>> // List of suggestions with scores
Possible errors
- WRONGTYPE:
RedisServerException
See Redis error messages for what each error means. Other errors, such as connection errors, aren't listed.
ftsugget(
$key: string, // The suggestion dictionary key
$prefix: string, // The prefix to search for
$arguments: ?SugGetArguments // Optional arguments (FUZZY, WITHSCORES, WITHPAYLOADS, MAX)
) → array // List of suggestions
Possible errors
- WRONGTYPE:
Predis\Response\ServerException (test with $e->getErrorType() === 'WRONGTYPE')
See Redis error messages for what each error means. Other errors, such as connection errors, aren't listed.
ft_sugget(
key: String, // the suggestion dictionary key
prefix: String, // the prefix to complete
options: Hash // accepts :fuzzy (FUZZY), :with_scores (WITHSCORES), :with_payloads (WITHPAYLOADS) and :max (MAX)
) → Array<String> // the suggestions, interleaved with scores/payloads when requested
Possible errors
- WRONGTYPE:
Redis::WrongTypeError
See Redis error messages for what each error means. Other errors, such as connection errors, aren't listed.
redis-rs has no dedicated method for this command. Send it with redis::cmd.
redis-rs has no dedicated method for this command. Send it with redis::cmd.