Skip to main content

FT.SYNDUMP

Syntax

FT.SYNDUMP index

Time complexity: O(1)

Description

Dumps all synonym groups that exist in the given index.

Required arguments

index

is index name. You must first create the index using the FT.CREATE command.

Return

FT.SYNDUMP returns an array of pairs, where the first element of each pair is the synonym group identifier, and the second element is an array of terms belonging to that group.

Examples

Dump synonym groups
dragonfly> FT.SYNUPDATE idx synonym hello hi shalom
OK
dragonfly> FT.SYNDUMP idx
1) "synonym"
2) 1) "hello"
2) "hi"
3) "shalom"

See also

FT.SYNUPDATE