Commit 3150bf8
authored
Search: reduce page size in search API pagination (#12549)
50 results is a lot, user probably don't even read past the first 10
results. Returning lots of results means:
- More work for ES
- More data to transfer. Each result has sub-results (blocks), which
also return the source text together with the highlighted portion.
- More time to render the results in the UI.
The search addon could possibly fetch less results (15? 20?). But just
making this a change for all API calls for now (maybe we can be even
made this 25). Some silly testing showed improvements of ~10-50ms1 parent c2d9491 commit 3150bf8
2 files changed
+19
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
38 | | - | |
| 38 | + | |
39 | 39 | | |
40 | | - | |
| 40 | + | |
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
183 | 183 | | |
184 | 184 | | |
185 | 185 | | |
186 | | - | |
187 | | - | |
| 186 | + | |
| 187 | + | |
188 | 188 | | |
189 | 189 | | |
190 | 190 | | |
| |||
193 | 193 | | |
194 | 194 | | |
195 | 195 | | |
196 | | - | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
197 | 209 | | |
198 | | - | |
199 | | - | |
| 210 | + | |
| 211 | + | |
200 | 212 | | |
201 | 213 | | |
202 | 214 | | |
| |||
0 commit comments