Commit ea2a7a8
authored
feat(redis): add full-text search and io (#535)
* feat: redis support full-text search
* docs: add redis full-text search doc
* feat: add tag_indices to redis getsetdel
* refactor: black redis files
* feat: redis supports io
* fix: fix test_push_pull_io for redis
* refactor: code minor adjustments
* docs: default scorer function in redis text search
* feat: make redis scoer parameter configurable
* docs: redis doc error fix
* test: add test for scorer of redis text search1 parent 638f362 commit ea2a7a8Copy full SHA for ea2a7a8
6 files changed
+239-10Lines changed: 239 additions & 10 deletions
File tree
Expand file treeCollapse file tree
Open diff view settings
Filter options
- docarray/array/storage/redis
- docs/advanced/document-store
- tests/unit/array/mixins
Expand file treeCollapse file tree
Open diff view settings
Collapse file
docarray/array/storage/redis/backend.py
Copy file name to clipboardExpand all lines: docarray/array/storage/redis/backend.py+21Lines changed: 21 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
24 | 24 | |
25 | 25 | |
26 | 26 | |
| 27 | + |
| 28 | + |
27 | 29 | |
28 | 30 | |
29 | 31 | |
| ||
146 | 148 | |
147 | 149 | |
148 | 150 | |
| 151 | + |
| 152 | + |
| 153 | + |
| 154 | + |
| 155 | + |
| 156 | + |
149 | 157 | |
150 | 158 | |
151 | 159 | |
| ||
178 | 186 | |
179 | 187 | |
180 | 188 | |
| 189 | + |
| 190 | + |
| 191 | + |
| 192 | + |
| 193 | + |
| 194 | + |
| 195 | + |
| 196 | + |
| 197 | + |
| 198 | + |
| 199 | + |
| 200 | + |
| 201 | + |
Collapse file
docarray/array/storage/redis/find.py
Copy file name to clipboardExpand all lines: docarray/array/storage/redis/find.py+68-4Lines changed: 68 additions & 4 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
39 | 39 | |
40 | 40 | |
41 | 41 | |
42 | | - |
| 42 | + |
43 | 43 | |
44 | 44 | |
45 | 45 | |
| ||
73 | 73 | |
74 | 74 | |
75 | 75 | |
76 | | - |
| 76 | + |
77 | 77 | |
78 | 78 | |
79 | 79 | |
| ||
88 | 88 | |
89 | 89 | |
90 | 90 | |
91 | | - |
| 91 | + |
| 92 | + |
| 93 | + |
| 94 | + |
| 95 | + |
92 | 96 | |
93 | 97 | |
94 | 98 | |
| ||
102 | 106 | |
103 | 107 | |
104 | 108 | |
105 | | - |
| 109 | + |
| 110 | + |
| 111 | + |
| 112 | + |
| 113 | + |
106 | 114 | |
107 | 115 | |
108 | 116 | |
| 117 | + |
| 118 | + |
| 119 | + |
| 120 | + |
| 121 | + |
| 122 | + |
| 123 | + |
| 124 | + |
| 125 | + |
| 126 | + |
| 127 | + |
| 128 | + |
| 129 | + |
| 130 | + |
| 131 | + |
| 132 | + |
| 133 | + |
| 134 | + |
| 135 | + |
| 136 | + |
| 137 | + |
| 138 | + |
| 139 | + |
| 140 | + |
| 141 | + |
| 142 | + |
| 143 | + |
| 144 | + |
| 145 | + |
| 146 | + |
| 147 | + |
| 148 | + |
| 149 | + |
| 150 | + |
| 151 | + |
| 152 | + |
| 153 | + |
| 154 | + |
| 155 | + |
| 156 | + |
| 157 | + |
| 158 | + |
| 159 | + |
| 160 | + |
| 161 | + |
| 162 | + |
| 163 | + |
| 164 | + |
| 165 | + |
| 166 | + |
| 167 | + |
109 | 168 | |
110 | 169 | |
111 | 170 | |
| ||
154 | 213 | |
155 | 214 | |
156 | 215 | |
| 216 | + |
| 217 | + |
| 218 | + |
| 219 | + |
| 220 | + |
Collapse file
docarray/array/storage/redis/getsetdel.py
Copy file name to clipboardExpand all lines: docarray/array/storage/redis/getsetdel.py+6Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
95 | 95 | |
96 | 96 | |
97 | 97 | |
| 98 | + |
| 99 | + |
| 100 | + |
| 101 | + |
| 102 | + |
| 103 | + |
98 | 104 | |
99 | 105 | |
100 | 106 | |
|
Collapse file
docs/advanced/document-store/redis.md
Copy file name to clipboardExpand all lines: docs/advanced/document-store/redis.md+113-2Lines changed: 113 additions & 2 deletions
- Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
157 | 157 | |
158 | 158 | |
159 | 159 | |
160 | | - |
| 160 | + |
161 | 161 | |
162 | 162 | |
163 | 163 | |
| ||
167 | 167 | |
168 | 168 | |
169 | 169 | |
170 | | - |
| 170 | + |
171 | 171 | |
172 | 172 | |
173 | 173 | |
| ||
281 | 281 | |
282 | 282 | |
283 | 283 | |
| 284 | + |
| 285 | + |
| 286 | + |
| 287 | + |
| 288 | + |
| 289 | + |
| 290 | + |
| 291 | + |
| 292 | + |
| 293 | + |
| 294 | + |
| 295 | + |
| 296 | + |
| 297 | + |
| 298 | + |
| 299 | + |
| 300 | + |
| 301 | + |
| 302 | + |
| 303 | + |
| 304 | + |
| 305 | + |
| 306 | + |
| 307 | + |
| 308 | + |
| 309 | + |
| 310 | + |
| 311 | + |
| 312 | + |
| 313 | + |
| 314 | + |
| 315 | + |
| 316 | + |
| 317 | + |
| 318 | + |
| 319 | + |
| 320 | + |
| 321 | + |
| 322 | + |
| 323 | + |
| 324 | + |
| 325 | + |
| 326 | + |
| 327 | + |
| 328 | + |
| 329 | + |
| 330 | + |
| 331 | + |
| 332 | + |
| 333 | + |
| 334 | + |
| 335 | + |
| 336 | + |
| 337 | + |
| 338 | + |
| 339 | + |
| 340 | + |
| 341 | + |
| 342 | + |
| 343 | + |
| 344 | + |
| 345 | + |
| 346 | + |
| 347 | + |
| 348 | + |
| 349 | + |
| 350 | + |
| 351 | + |
| 352 | + |
| 353 | + |
| 354 | + |
| 355 | + |
| 356 | + |
| 357 | + |
| 358 | + |
| 359 | + |
| 360 | + |
| 361 | + |
| 362 | + |
| 363 | + |
| 364 | + |
| 365 | + |
| 366 | + |
| 367 | + |
| 368 | + |
| 369 | + |
| 370 | + |
| 371 | + |
| 372 | + |
| 373 | + |
| 374 | + |
| 375 | + |
| 376 | + |
| 377 | + |
| 378 | + |
| 379 | + |
| 380 | + |
| 381 | + |
| 382 | + |
| 383 | + |
| 384 | + |
| 385 | + |
| 386 | + |
| 387 | + |
| 388 | + |
| 389 | + |
| 390 | + |
| 391 | + |
| 392 | + |
| 393 | + |
| 394 | + |
284 | 395 | |
285 | 396 | |
286 | 397 | |
|
Collapse file
tests/unit/array/mixins/test_find.py
Copy file name to clipboardExpand all lines: tests/unit/array/mixins/test_find.py+10-3Lines changed: 10 additions & 3 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
99 | 99 | |
100 | 100 | |
101 | 101 | |
| 102 | + |
102 | 103 | |
103 | 104 | |
104 | 105 | |
| ||
111 | 112 | |
112 | 113 | |
113 | 114 | |
114 | | - |
| 115 | + |
| 116 | + |
| 117 | + |
| 118 | + |
115 | 119 | |
116 | 120 | |
117 | 121 | |
| ||
140 | 144 | |
141 | 145 | |
142 | 146 | |
| 147 | + |
| 148 | + |
| 149 | + |
| 150 | + |
143 | 151 | |
144 | 152 | |
145 | 153 | |
| ||
193 | 201 | |
194 | 202 | |
195 | 203 | |
196 | | - |
197 | | - |
| 204 | + |
198 | 205 | |
199 | 206 | |
200 | 207 | |
|
0 commit comments