FT.SUGDEL

Syntax
FT.SUGDEL key string
Available in:
Redis Stack / Search 1.0.0
Time complexity:
O(1)

Delete a string from a suggestion index

Examples

Required arguments

key

is suggestion dictionary key.

string

is suggestion string to index.

Return

FT.SUGDEL returns an integer reply, 1 if the string was found and deleted, 0 otherwise.

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

See also

FT.SUGGET | FT.SUGADD | FT.SUGLEN

RediSearch


Rate this page