FT.SYNDUMP

Syntax
FT.SYNDUMP index
Available in:
Redis Stack / Search 1.2.0
Time complexity:
O(1)

Dump the contents of a synonym group

Examples

Required arguments

index

is index name.

Use FT.SYNDUMP to dump the synonyms data structure. This command returns a list of synonym terms and their synonym group ids.

Return

FT.SYNDUMP returns an array reply, with a pair of term and an array of synonym groups.

Examples

Return the contents of a synonym group
127.0.0.1:6379> FT.SYNDUMP idx
1) "shalom"
2) 1) "synonym1"
   2) "synonym2"
3) "hi"
4) 1) "synonym1"
5) "hello"
6) 1) "synonym1"

See also

FT.SYNUPDATE

RediSearch

Rate this page