Skip to content

Commit 069159f

Browse files
authored
Add track_total_hits to search_mvt (#4850)
1 parent b4c5c33 commit 069159f

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
@@ -37,8 +37,7 @@
3737
},
3838
"search_mvt": {
3939
"request": [
40-
"Request: query parameter 'grid_agg' does not exist in the json spec",
41-
"Request: missing json spec query parameter 'track_total_hits'"
40+
"Request: query parameter 'grid_agg' does not exist in the json spec"
4241
],
4342
"response": []
4443
},

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)