FT.SUGDEL

Syntax
FT.SUGDEL key string
Available in:
Redis Open Source / Search 1.0.0
Time complexity:
O(1)
ACL categories:
@search, @write,
Compatibility:
Redis Enterprise and Redis Cloud compatibility

Delete a string from a suggestion index

Examples

Required arguments

key

is suggestion dictionary key.

string

is suggestion string to index.

Examples

Delete a string from a suggestion index
127.0.0.1:6379> FT.SUGDEL sug "hello"
(integer) 1
127.0.0.1:6379> FT.SUGDEL sug "hello"
(integer) 0

Redis Enterprise and Redis Cloud compatibility

Redis
Enterprise
Redis
Cloud
Notes
❌ Standard
❌ Active-Active
❌ Standard
❌ Active-Active

Return information

Integer reply: 1 if the suggestion was deleted, 0 if it was not found.

See also

FT.SUGGET | FT.SUGADD | FT.SUGLEN

RediSearch

RATE THIS PAGE
Back to top ↑