Commit d8e8215
authored
Search: improve queries (#12569)
- Set some values for fuzzyness. Search terms like `webdav~` timeout ES,
with these settings now the query resolves between 400-800ms. Not great,
but at least doesn't kill ES.
- Enforce a limit of 3 results for inner hits (blocks).
- Move the filter query so it's at the top (according to chatgpt this is
an improvement).
I tested several queries on ES, and all of them take around 200ms, even
the simplest one... Sometimes some queries do take more time (randomly).
My guess is that some other slow queries add some overhead to the
server, so all queries get affected. Other theories are the index size,
and using the wrong tokenizer/analyzer for the type of queries users
want.1 parent 4ec5cd5 commit d8e8215
1 file changed
+11
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
113 | 113 | | |
114 | 114 | | |
115 | 115 | | |
| 116 | + | |
| 117 | + | |
116 | 118 | | |
117 | 119 | | |
118 | 120 | | |
119 | 121 | | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
120 | 125 | | |
121 | 126 | | |
122 | 127 | | |
| |||
283 | 288 | | |
284 | 289 | | |
285 | 290 | | |
286 | | - | |
| 291 | + | |
287 | 292 | | |
288 | 293 | | |
289 | 294 | | |
290 | 295 | | |
291 | 296 | | |
292 | | - | |
| 297 | + | |
293 | 298 | | |
294 | 299 | | |
295 | 300 | | |
| |||
312 | 317 | | |
313 | 318 | | |
314 | 319 | | |
| 320 | + | |
315 | 321 | | |
316 | 322 | | |
317 | 323 | | |
318 | 324 | | |
319 | 325 | | |
320 | 326 | | |
321 | | - | |
| 327 | + | |
322 | 328 | | |
323 | 329 | | |
324 | 330 | | |
| |||
327 | 333 | | |
328 | 334 | | |
329 | 335 | | |
330 | | - | |
| 336 | + | |
331 | 337 | | |
332 | 338 | | |
333 | 339 | | |
| |||
348 | 354 | | |
349 | 355 | | |
350 | 356 | | |
351 | | - | |
| 357 | + | |
352 | 358 | | |
353 | 359 | | |
354 | 360 | | |
| |||
0 commit comments