Skip to content

Commit 91b241e

Browse files
Add track_total_hits to search_mvt (#4850) (#4870) (#4873)
(cherry picked from commit 069159f) Co-authored-by: Quentin Pradet <[email protected]> (cherry picked from commit 5c415de) # Conflicts: # output/schema/schema.json Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
1 parent 7f8f975 commit 91b241e

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
@@ -281,8 +281,7 @@
281281
},
282282
"search_mvt": {
283283
"request": [
284-
"Request: query parameter 'grid_agg' does not exist in the json spec",
285-
"Request: missing json spec query parameter 'track_total_hits'"
284+
"Request: query parameter 'grid_agg' does not exist in the json spec"
286285
],
287286
"response": []
288287
},

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
@@ -246,6 +246,13 @@ export interface Request extends RequestBase {
246246
* @server_default 10000
247247
*/
248248
size?: integer
249+
/**
250+
* The number of hits matching the query to count accurately.
251+
* If `true`, the exact number of hits is returned at the cost of some performance.
252+
* If `false`, the response does not include the total number of hits matching the query.
253+
* @server_default 10000
254+
*/
255+
track_total_hits?: TrackHits
249256
/**
250257
* If `true`, the hits and aggs layers will contain additional point features representing
251258
* suggested label positions for the original features.

0 commit comments

Comments
 (0)