Commit 1b6eb95
committed
fix(autocomplete): use Tuple.getElement() for payload lookup in autocomplete (#673)
When both withScore() and withPayload() options are enabled, the code
incorrectly passed the Tuple object directly to the hash lookup instead
of extracting the string element first.
This caused a ClassCastException: "class redis.clients.jedis.resps.Tuple
cannot be cast to class java.lang.String"
Closes #6731 parent 810a2f1 commit 1b6eb95
File tree
2 files changed
+30
-1
lines changed- redis-om-spring/src/main/java/com/redis/om/spring/ops/search
- tests/src/test/java/com/redis/om/spring/annotations/autocompletable
2 files changed
+30
-1
lines changedLines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
135 | 135 | | |
136 | 136 | | |
137 | 137 | | |
138 | | - | |
| 138 | + | |
139 | 139 | | |
140 | 140 | | |
141 | 141 | | |
| |||
Lines changed: 29 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
98 | 98 | | |
99 | 99 | | |
100 | 100 | | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
101 | 130 | | |
0 commit comments