Skip to content

Add track_total_hits to search_mvt #4850

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jul 11, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions output/openapi/elasticsearch-openapi.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 16 additions & 0 deletions output/openapi/elasticsearch-serverless-openapi.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 14 additions & 1 deletion output/schema/schema.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions output/schema/validation-errors.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,7 @@
},
"search_mvt": {
"request": [
"Request: query parameter 'grid_agg' does not exist in the json spec",
"Request: missing json spec query parameter 'track_total_hits'"
"Request: query parameter 'grid_agg' does not exist in the json spec"
],
"response": []
},
Expand Down
1 change: 1 addition & 0 deletions output/typescript/types.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions specification/_global/search_mvt/SearchMvtRequest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,13 @@ export interface Request extends RequestBase {
* @server_default 10000
*/
size?: integer
/**
* The number of hits matching the query to count accurately.
* If `true`, the exact number of hits is returned at the cost of some performance.
* If `false`, the response does not include the total number of hits matching the query.
* @server_default 10000
*/
track_total_hits?: TrackHits
/**
* If `true`, the hits and aggs layers will contain additional point features representing
* suggested label positions for the original features.
Expand Down
Loading