diff --git a/output/openapi/elasticsearch-openapi.json b/output/openapi/elasticsearch-openapi.json index 3984e8348e..da3974de61 100644 --- a/output/openapi/elasticsearch-openapi.json +++ b/output/openapi/elasticsearch-openapi.json @@ -134444,6 +134444,13 @@ "$ref": "#/components/schemas/_types.Sort" } ] + }, + "track_total_hits": { + "allOf": [ + { + "$ref": "#/components/schemas/_global.search._types.TrackHits" + } + ] } } } diff --git a/output/openapi/elasticsearch-serverless-openapi.json b/output/openapi/elasticsearch-serverless-openapi.json index 4f03b57ab3..22ca3e8851 100644 --- a/output/openapi/elasticsearch-serverless-openapi.json +++ b/output/openapi/elasticsearch-serverless-openapi.json @@ -81581,6 +81581,13 @@ "$ref": "#/components/schemas/_types.Sort" } ] + }, + "track_total_hits": { + "allOf": [ + { + "$ref": "#/components/schemas/_global.search._types.TrackHits" + } + ] } } } diff --git a/output/schema/schema.json b/output/schema/schema.json index 54a4ba7e49..2654a8df42 100644 --- a/output/schema/schema.json +++ b/output/schema/schema.json @@ -257838,6 +257838,17 @@ "namespace": "_types" } } + }, + { + "name": "track_total_hits", + "required": false, + "type": { + "kind": "instance_of", + "type": { + "name": "TrackHits", + "namespace": "_global.search._types" + } + } } ] }, @@ -257845,7 +257856,7 @@ "name": "Response", "namespace": "sql.translate" }, - "specLocation": "sql/translate/TranslateSqlResponse.ts#L27-L37" + "specLocation": "sql/translate/TranslateSqlResponse.ts#L28-L39" }, { "kind": "interface", diff --git a/output/typescript/types.ts b/output/typescript/types.ts index ee15776942..8b9560685a 100644 --- a/output/typescript/types.ts +++ b/output/typescript/types.ts @@ -21849,6 +21849,7 @@ export interface SqlTranslateResponse { fields?: (QueryDslFieldAndFormat | Field)[] query?: QueryDslQueryContainer sort?: Sort + track_total_hits?: SearchTrackHits } export interface SslCertificatesCertificateInformation { diff --git a/specification/sql/translate/TranslateSqlResponse.ts b/specification/sql/translate/TranslateSqlResponse.ts index fdc45daec9..dea4600111 100644 --- a/specification/sql/translate/TranslateSqlResponse.ts +++ b/specification/sql/translate/TranslateSqlResponse.ts @@ -21,6 +21,7 @@ import { AggregationContainer } from '@_types/aggregations/AggregationContainer' import { long } from '@_types/Numeric' import { FieldAndFormat, QueryContainer } from '@_types/query_dsl/abstractions' import { Sort } from '@_types/sort' +import { TrackHits } from '@global/search/_types/hits' import { SourceConfig } from '@global/search/_types/SourceFilter' import { Dictionary } from '@spec_utils/Dictionary' @@ -33,5 +34,6 @@ export class Response { fields?: Array query?: QueryContainer sort?: Sort + track_total_hits?: TrackHits } }