Commit 266de98
authored
Add rest_total_hits_as_int in HLRC's search request (#46076)
This commit adds a query parameter called rest_total_hits_as_int to all HLRC's search requests
that support it (_search, _msearch, ...). This makes the HLRC client's search compatible with any node in version >= 6.6.0 since rest_total_hits_as_int has been added in 6.6.0. This means that nodes in version < 6.6.0 won't be able to handle search requests sent by an HLRC in version 6.8.3 but we already warn in the docs that the client is forward compatible only:
https://www.elastic.co/guide/en/elasticsearch/client/java-rest/current/java-rest-high-compatibility.html
Closes #439251 parent cfd70e9 commit 266de98
File tree
2 files changed
+5
-0
lines changed- client/rest-high-level/src
- main/java/org/elasticsearch/client
- test/java/org/elasticsearch/client
2 files changed
+5
-0
lines changedLines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
392 | 392 | | |
393 | 393 | | |
394 | 394 | | |
| 395 | + | |
395 | 396 | | |
396 | 397 | | |
397 | 398 | | |
| |||
425 | 426 | | |
426 | 427 | | |
427 | 428 | | |
| 429 | + | |
428 | 430 | | |
429 | 431 | | |
430 | 432 | | |
| |||
458 | 460 | | |
459 | 461 | | |
460 | 462 | | |
| 463 | + | |
461 | 464 | | |
462 | 465 | | |
463 | 466 | | |
| |||
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1119 | 1119 | | |
1120 | 1120 | | |
1121 | 1121 | | |
| 1122 | + | |
1122 | 1123 | | |
1123 | 1124 | | |
1124 | 1125 | | |
| |||
1733 | 1734 | | |
1734 | 1735 | | |
1735 | 1736 | | |
| 1737 | + | |
1736 | 1738 | | |
1737 | 1739 | | |
1738 | 1740 | | |
| |||
0 commit comments