FT.SYNDUMP

FT.SYNDUMP index
Railroad diagram for FT.SYNDUMP
syndump() → Dict[str, List[str]]  // The contents of the synonym group
Available in:
Redis Open Source / Search 1.2.0
Time complexity:
O(1)
ACL categories:
@search,
Compatibility:
Redis Software and Redis Cloud compatibility

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.

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"

Redis Software and Redis Cloud compatibility

Redis
Software
Redis Cloud
Flexible & Annual
Redis Cloud
Free & Fixed
Notes
✅ Supported ✅ Supported ✅ Supported

Return information

One of the following:

One of the following:

  • Map where keys are synonym terms and values are arrays of their associated synonym groups.
  • Simple error reply in these cases: no such index.

See also

FT.SYNUPDATE

RediSearch

RATE THIS PAGE
Back to top ↑
Morty Proxy This is a proxified and sanitized view of the page, visit original site.