diff --git a/output/openapi/elasticsearch-openapi.json b/output/openapi/elasticsearch-openapi.json index 1c9eb8caae..40651861d8 100644 --- a/output/openapi/elasticsearch-openapi.json +++ b/output/openapi/elasticsearch-openapi.json @@ -35479,6 +35479,9 @@ { "$ref": "#/components/parameters/search_mvt-size" }, + { + "$ref": "#/components/parameters/search_mvt-track_total_hits" + }, { "$ref": "#/components/parameters/search_mvt-with_labels" } @@ -35544,6 +35547,9 @@ { "$ref": "#/components/parameters/search_mvt-size" }, + { + "$ref": "#/components/parameters/search_mvt-track_total_hits" + }, { "$ref": "#/components/parameters/search_mvt-with_labels" } @@ -121038,6 +121044,16 @@ }, "style": "form" }, + "search_mvt-track_total_hits": { + "in": "query", + "name": "track_total_hits", + "description": "The number of hits matching the query to count accurately.\nIf `true`, the exact number of hits is returned at the cost of some performance.\nIf `false`, the response does not include the total number of hits matching the query.", + "deprecated": false, + "schema": { + "$ref": "#/components/schemas/_global.search._types.TrackHits" + }, + "style": "form" + }, "search_mvt-with_labels": { "in": "query", "name": "with_labels", diff --git a/output/openapi/elasticsearch-serverless-openapi.json b/output/openapi/elasticsearch-serverless-openapi.json index f9e17b1291..642b993ae7 100644 --- a/output/openapi/elasticsearch-serverless-openapi.json +++ b/output/openapi/elasticsearch-serverless-openapi.json @@ -21771,6 +21771,9 @@ { "$ref": "#/components/parameters/search_mvt-size" }, + { + "$ref": "#/components/parameters/search_mvt-track_total_hits" + }, { "$ref": "#/components/parameters/search_mvt-with_labels" } @@ -21836,6 +21839,9 @@ { "$ref": "#/components/parameters/search_mvt-size" }, + { + "$ref": "#/components/parameters/search_mvt-track_total_hits" + }, { "$ref": "#/components/parameters/search_mvt-with_labels" } @@ -72419,6 +72425,16 @@ }, "style": "form" }, + "search_mvt-track_total_hits": { + "in": "query", + "name": "track_total_hits", + "description": "The number of hits matching the query to count accurately.\nIf `true`, the exact number of hits is returned at the cost of some performance.\nIf `false`, the response does not include the total number of hits matching the query.", + "deprecated": false, + "schema": { + "$ref": "#/components/schemas/_global.search._types.TrackHits" + }, + "style": "form" + }, "search_mvt-with_labels": { "in": "query", "name": "with_labels", diff --git a/output/schema/schema.json b/output/schema/schema.json index 293e0474e9..ccc5c78e9b 100644 --- a/output/schema/schema.json +++ b/output/schema/schema.json @@ -45227,6 +45227,19 @@ } } }, + { + "description": "The number of hits matching the query to count accurately.\nIf `true`, the exact number of hits is returned at the cost of some performance.\nIf `false`, the response does not include the total number of hits matching the query.", + "name": "track_total_hits", + "required": false, + "serverDefault": "10000", + "type": { + "kind": "instance_of", + "type": { + "name": "TrackHits", + "namespace": "_global.search._types" + } + } + }, { "description": "If `true`, the hits and aggs layers will contain additional point features representing\nsuggested label positions for the original features.\n\n* `Point` and `MultiPoint` features will have one of the points selected.\n* `Polygon` and `MultiPolygon` features will have a single point generated, either the centroid, if it is within the polygon, or another point within the polygon selected from the sorted triangle-tree.\n* `LineString` features will likewise provide a roughly central point selected from the triangle-tree.\n* The aggregation results will provide one central point for each aggregation bucket.\n\nAll attributes from the original features will also be copied to the new label features.\nIn addition, the new features will be distinguishable using the tag `_mvt_label_position`.", "name": "with_labels", @@ -45240,7 +45253,7 @@ } } ], - "specLocation": "_global/search_mvt/SearchMvtRequest.ts#L33-L327" + "specLocation": "_global/search_mvt/SearchMvtRequest.ts#L33-L334" }, { "kind": "response", diff --git a/output/schema/validation-errors.json b/output/schema/validation-errors.json index 1472783810..d73de1af59 100644 --- a/output/schema/validation-errors.json +++ b/output/schema/validation-errors.json @@ -43,8 +43,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": [] }, diff --git a/output/typescript/types.ts b/output/typescript/types.ts index aad87e02f4..e3c72f90b5 100644 --- a/output/typescript/types.ts +++ b/output/typescript/types.ts @@ -1851,6 +1851,7 @@ export interface SearchMvtRequest extends RequestBase { grid_precision?: integer grid_type?: SearchMvtGridType size?: integer + track_total_hits?: SearchTrackHits with_labels?: boolean body?: { aggs?: Record diff --git a/specification/_global/search_mvt/SearchMvtRequest.ts b/specification/_global/search_mvt/SearchMvtRequest.ts index 18a07a0439..a651907389 100644 --- a/specification/_global/search_mvt/SearchMvtRequest.ts +++ b/specification/_global/search_mvt/SearchMvtRequest.ts @@ -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.