Skip to content

Commit 66d3921

Browse files
pquentingithub-actions[bot]
authored andcommitted
Add track_total_hits to search_mvt (#4850)
(cherry picked from commit 069159f)
1 parent fd4db4f commit 66d3921

File tree

6 files changed

+55
-3
lines changed

6 files changed

+55
-3
lines changed

output/openapi/elasticsearch-openapi.json

Lines changed: 16 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

output/openapi/elasticsearch-serverless-openapi.json

Lines changed: 16 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

output/schema/schema.json

Lines changed: 14 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

output/schema/validation-errors.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,7 @@
4343
},
4444
"search_mvt": {
4545
"request": [
46-
"Request: query parameter 'grid_agg' does not exist in the json spec",
47-
"Request: missing json spec query parameter 'track_total_hits'"
46+
"Request: query parameter 'grid_agg' does not exist in the json spec"
4847
],
4948
"response": []
5049
},

output/typescript/types.ts

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

specification/_global/search_mvt/SearchMvtRequest.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -200,6 +200,13 @@ export interface Request extends RequestBase {
200200
* @server_default 10000
201201
*/
202202
size?: integer
203+
/**
204+
* The number of hits matching the query to count accurately.
205+
* If `true`, the exact number of hits is returned at the cost of some performance.
206+
* If `false`, the response does not include the total number of hits matching the query.
207+
* @server_default 10000
208+
*/
209+
track_total_hits?: TrackHits
203210
/**
204211
* If `true`, the hits and aggs layers will contain additional point features representing
205212
* suggested label positions for the original features.

0 commit comments

Comments
 (0)