FT.SUGDEL

Available in:
Redis Stack / Search 1.0.0
Time complexity:
O(1)

Delete a string from a suggestion index

Syntax

FT.SUGDEL key string

Examples

Required parameters

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

Feedback

If you've found issues on this page, or have suggestions for improvement, please submit a request to merge or open an issue in the repository.