public class SynonymMapParser extends Object implements ComplexDataParser<Map<String,List<String>>>
This parser automatically detects the Redis protocol version and switches between RESP2 and RESP3 parsing strategies.
The result is a map where each key is a synonym term and each value is a list of group IDs that contain that synonym. This structure properly represents the synonym relationships returned by Redis Search.
| Constructor and Description |
|---|
SynonymMapParser() |
| Modifier and Type | Method and Description |
|---|---|
Map<String,List<String>> |
parse(ComplexData data)
Parse the FT.SYNDUMP response data, automatically detecting RESP2 vs RESP3 format.
|
public Map<String,List<String>> parse(ComplexData data)
Copyright © 2026 lettuce.io. All rights reserved.