K - Key type.V - Value type.public class SynonymMapParser<K,V> extends Object implements ComplexDataParser<Map<V,List<V>>>
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(RedisCodec<K,V> codec) |
| Modifier and Type | Method and Description |
|---|---|
Map<V,List<V>> |
parse(ComplexData data)
Parse the FT.SYNDUMP response data, automatically detecting RESP2 vs RESP3 format.
|
public SynonymMapParser(RedisCodec<K,V> codec)
public Map<V,List<V>> parse(ComplexData data)
Copyright © 2025 lettuce.io. All rights reserved.