diff --git a/output/schema/schema.json b/output/schema/schema.json index 072022e30d..6a2a6b4880 100644 --- a/output/schema/schema.json +++ b/output/schema/schema.json @@ -39569,7 +39569,7 @@ "name": "AggregateName", "namespace": "_types" }, - "specLocation": "_types/common.ts#L137-L141", + "specLocation": "_types/common.ts#L139-L143", "type": { "kind": "instance_of", "type": { @@ -39768,7 +39768,7 @@ } } ], - "specLocation": "_types/Stats.ts#L47-L57" + "specLocation": "_types/Stats.ts#L67-L77" }, { "docId": "byte-units", @@ -39778,7 +39778,7 @@ "name": "ByteSize", "namespace": "_types" }, - "specLocation": "_types/common.ts#L88-L89", + "specLocation": "_types/common.ts#L90-L91", "type": { "items": [ { @@ -39831,7 +39831,7 @@ "name": "Bytes", "namespace": "_types" }, - "specLocation": "_types/common.ts#L161-L179" + "specLocation": "_types/common.ts#L163-L181" }, { "kind": "type_alias", @@ -39848,6 +39848,100 @@ } } }, + { + "kind": "type_alias", + "name": { + "name": "ClusterAlias", + "namespace": "_types" + }, + "specLocation": "_types/common.ts#L72-L72", + "type": { + "kind": "instance_of", + "type": { + "name": "string", + "namespace": "_builtins" + } + } + }, + { + "kind": "interface", + "name": { + "name": "ClusterDetails", + "namespace": "_types" + }, + "properties": [ + { + "name": "status", + "required": true, + "type": { + "kind": "instance_of", + "type": { + "name": "ClusterSearchStatusEnum", + "namespace": "_types" + } + } + }, + { + "name": "indices", + "required": true, + "type": { + "kind": "instance_of", + "type": { + "name": "string", + "namespace": "_builtins" + } + } + }, + { + "name": "took", + "required": false, + "type": { + "kind": "instance_of", + "type": { + "name": "long", + "namespace": "_types" + } + } + }, + { + "name": "timed_out", + "required": true, + "type": { + "kind": "instance_of", + "type": { + "name": "boolean", + "namespace": "_builtins" + } + } + }, + { + "name": "_shards", + "required": false, + "type": { + "kind": "instance_of", + "type": { + "name": "ShardStatistics", + "namespace": "_types" + } + } + }, + { + "name": "failures", + "required": false, + "type": { + "kind": "array_of", + "value": { + "kind": "instance_of", + "type": { + "name": "ShardFailure", + "namespace": "_types" + } + } + } + } + ], + "specLocation": "_types/Stats.ts#L44-L51" + }, { "kind": "enum", "members": [ @@ -39871,7 +39965,7 @@ "name": "ClusterInfoTarget", "namespace": "_types" }, - "specLocation": "_types/common.ts#L376-L382" + "specLocation": "_types/common.ts#L378-L384" }, { "kind": "type_alias", @@ -39879,7 +39973,7 @@ "name": "ClusterInfoTargets", "namespace": "_types" }, - "specLocation": "_types/common.ts#L384-L384", + "specLocation": "_types/common.ts#L386-L386", "type": { "items": [ { @@ -39903,6 +39997,31 @@ "kind": "union_of" } }, + { + "kind": "enum", + "members": [ + { + "name": "running" + }, + { + "name": "successful" + }, + { + "name": "partial" + }, + { + "name": "skipped" + }, + { + "name": "failed" + } + ], + "name": { + "name": "ClusterSearchStatusEnum", + "namespace": "_types" + }, + "specLocation": "_types/Stats.ts#L34-L40" + }, { "kind": "interface", "name": { @@ -39942,9 +40061,31 @@ "namespace": "_types" } } + }, + { + "name": "details", + "required": false, + "type": { + "key": { + "kind": "instance_of", + "type": { + "name": "ClusterAlias", + "namespace": "_types" + } + }, + "kind": "dictionary_of", + "singleKey": false, + "value": { + "kind": "instance_of", + "type": { + "name": "ClusterDetails", + "namespace": "_types" + } + } + } } ], - "specLocation": "_types/Stats.ts#L27-L31" + "specLocation": "_types/Stats.ts#L27-L32" }, { "kind": "interface", @@ -40000,7 +40141,7 @@ } } ], - "specLocation": "_types/Stats.ts#L59-L69" + "specLocation": "_types/Stats.ts#L79-L89" }, { "kind": "enum", @@ -40018,7 +40159,7 @@ "name": "Conflicts", "namespace": "_types" }, - "specLocation": "_types/common.ts#L181-L190" + "specLocation": "_types/common.ts#L183-L192" }, { "kind": "interface", @@ -40151,7 +40292,7 @@ "name": "DataStreamName", "namespace": "_types" }, - "specLocation": "_types/common.ts#L83-L84", + "specLocation": "_types/common.ts#L85-L86", "type": { "kind": "instance_of", "type": { @@ -40166,7 +40307,7 @@ "name": "DataStreamNames", "namespace": "_types" }, - "specLocation": "_types/common.ts#L86-L86", + "specLocation": "_types/common.ts#L88-L88", "type": { "items": [ { @@ -40352,7 +40493,7 @@ } } ], - "specLocation": "_types/Stats.ts#L76-L88" + "specLocation": "_types/Stats.ts#L96-L108" }, { "description": "A duration. Units can be `nanos`, `micros`, `ms` (milliseconds), `s` (seconds), `m` (minutes), `h` (hours) and\n`d` (days). Also accepts \"0\" without a unit and \"-1\" to indicate an unspecified value.", @@ -40539,7 +40680,7 @@ "namespace": "_types" }, "properties": [], - "specLocation": "_types/common.ts#L152-L153" + "specLocation": "_types/common.ts#L154-L155" }, { "generics": [ @@ -40732,7 +40873,7 @@ "name": "ExpandWildcard", "namespace": "_types" }, - "specLocation": "_types/common.ts#L199-L213" + "specLocation": "_types/common.ts#L201-L215" }, { "kind": "type_alias", @@ -40740,7 +40881,7 @@ "name": "ExpandWildcards", "namespace": "_types" }, - "specLocation": "_types/common.ts#L215-L215", + "specLocation": "_types/common.ts#L217-L217", "type": { "items": [ { @@ -40771,7 +40912,7 @@ "name": "Field", "namespace": "_types" }, - "specLocation": "_types/common.ts#L130-L131", + "specLocation": "_types/common.ts#L132-L133", "type": { "kind": "instance_of", "type": { @@ -40810,7 +40951,7 @@ } } ], - "specLocation": "_types/Stats.ts#L97-L100" + "specLocation": "_types/Stats.ts#L117-L120" }, { "kind": "interface", @@ -40842,7 +40983,7 @@ } } ], - "specLocation": "_types/Stats.ts#L71-L74" + "specLocation": "_types/Stats.ts#L91-L94" }, { "kind": "interface", @@ -41077,7 +41218,7 @@ } } ], - "specLocation": "_types/Stats.ts#L90-L95" + "specLocation": "_types/Stats.ts#L110-L115" }, { "kind": "type_alias", @@ -41085,7 +41226,7 @@ "name": "Fields", "namespace": "_types" }, - "specLocation": "_types/common.ts#L132-L132", + "specLocation": "_types/common.ts#L134-L134", "type": { "items": [ { @@ -41170,7 +41311,7 @@ } } ], - "specLocation": "_types/Stats.ts#L102-L107" + "specLocation": "_types/Stats.ts#L122-L127" }, { "docId": "fuzziness", @@ -41180,7 +41321,7 @@ "name": "Fuzziness", "namespace": "_types" }, - "specLocation": "_types/common.ts#L125-L126", + "specLocation": "_types/common.ts#L127-L128", "type": { "items": [ { @@ -41764,7 +41905,7 @@ } } ], - "specLocation": "_types/Stats.ts#L109-L120" + "specLocation": "_types/Stats.ts#L129-L140" }, { "kind": "enum", @@ -41795,7 +41936,7 @@ "name": "HealthStatus", "namespace": "_types" }, - "specLocation": "_types/common.ts#L217-L237" + "specLocation": "_types/common.ts#L219-L239" }, { "kind": "type_alias", @@ -41818,7 +41959,7 @@ "name": "HttpHeaders", "namespace": "_types" }, - "specLocation": "_types/common.ts#L150-L150", + "specLocation": "_types/common.ts#L152-L152", "type": { "key": { "kind": "instance_of", @@ -42204,7 +42345,7 @@ } } ], - "specLocation": "_types/Stats.ts#L122-L138" + "specLocation": "_types/Stats.ts#L142-L158" }, { "kind": "type_alias", @@ -42295,7 +42436,7 @@ } } ], - "specLocation": "_types/common.ts#L330-L357" + "specLocation": "_types/common.ts#L332-L359" }, { "inherits": { @@ -42434,7 +42575,7 @@ } } ], - "specLocation": "_types/common.ts#L319-L328" + "specLocation": "_types/common.ts#L321-L330" }, { "inherits": { @@ -42675,7 +42816,7 @@ "name": "Level", "namespace": "_types" }, - "specLocation": "_types/common.ts#L247-L251" + "specLocation": "_types/common.ts#L249-L253" }, { "kind": "enum", @@ -42922,7 +43063,7 @@ } } ], - "specLocation": "_types/Stats.ts#L140-L157" + "specLocation": "_types/Stats.ts#L160-L177" }, { "kind": "type_alias", @@ -42930,7 +43071,7 @@ "name": "Metadata", "namespace": "_types" }, - "specLocation": "_types/common.ts#L91-L91", + "specLocation": "_types/common.ts#L93-L93", "type": { "key": { "kind": "instance_of", @@ -42985,7 +43126,7 @@ "name": "MinimumShouldMatch", "namespace": "_types" }, - "specLocation": "_types/common.ts#L155-L159", + "specLocation": "_types/common.ts#L157-L161", "type": { "items": [ { @@ -43014,7 +43155,7 @@ "name": "MultiTermQueryRewrite", "namespace": "_types" }, - "specLocation": "_types/common.ts#L127-L128", + "specLocation": "_types/common.ts#L129-L130", "type": { "kind": "instance_of", "type": { @@ -43029,7 +43170,7 @@ "name": "Name", "namespace": "_types" }, - "specLocation": "_types/common.ts#L72-L72", + "specLocation": "_types/common.ts#L74-L74", "type": { "kind": "instance_of", "type": { @@ -43044,7 +43185,7 @@ "name": "Names", "namespace": "_types" }, - "specLocation": "_types/common.ts#L73-L73", + "specLocation": "_types/common.ts#L75-L75", "type": { "items": [ { @@ -43074,7 +43215,7 @@ "name": "Namespace", "namespace": "_types" }, - "specLocation": "_types/common.ts#L75-L75", + "specLocation": "_types/common.ts#L77-L77", "type": { "kind": "instance_of", "type": { @@ -43300,7 +43441,7 @@ "name": "NodeName", "namespace": "_types" }, - "specLocation": "_types/common.ts#L80-L81", + "specLocation": "_types/common.ts#L82-L83", "type": { "kind": "instance_of", "type": { @@ -43636,7 +43777,7 @@ "name": "OpType", "namespace": "_types" }, - "specLocation": "_types/common.ts#L253-L262" + "specLocation": "_types/common.ts#L255-L264" }, { "kind": "type_alias", @@ -43644,7 +43785,7 @@ "name": "Password", "namespace": "_types" }, - "specLocation": "_types/common.ts#L193-L193", + "specLocation": "_types/common.ts#L195-L195", "type": { "kind": "instance_of", "type": { @@ -43686,7 +43827,7 @@ "name": "PipelineName", "namespace": "_types" }, - "specLocation": "_types/common.ts#L78-L78", + "specLocation": "_types/common.ts#L80-L80", "type": { "kind": "instance_of", "type": { @@ -43805,7 +43946,7 @@ } } ], - "specLocation": "_types/Stats.ts#L159-L169" + "specLocation": "_types/Stats.ts#L179-L189" }, { "kind": "type_alias", @@ -43813,7 +43954,7 @@ "name": "PropertyName", "namespace": "_types" }, - "specLocation": "_types/common.ts#L122-L122", + "specLocation": "_types/common.ts#L124-L124", "type": { "kind": "instance_of", "type": { @@ -43926,7 +44067,7 @@ } } ], - "specLocation": "_types/Stats.ts#L171-L205" + "specLocation": "_types/Stats.ts#L191-L225" }, { "kind": "type_alias", @@ -44065,7 +44206,7 @@ } } ], - "specLocation": "_types/Stats.ts#L207-L212" + "specLocation": "_types/Stats.ts#L227-L232" }, { "esQuirk": "This is a boolean that evolved into an enum. ES also accepts plain booleans for true and false.", @@ -44085,7 +44226,7 @@ "name": "Refresh", "namespace": "_types" }, - "specLocation": "_types/common.ts#L264-L271" + "specLocation": "_types/common.ts#L266-L273" }, { "kind": "interface", @@ -44179,7 +44320,7 @@ } } ], - "specLocation": "_types/Stats.ts#L214-L221" + "specLocation": "_types/Stats.ts#L234-L241" }, { "kind": "type_alias", @@ -44187,7 +44328,7 @@ "name": "RelationName", "namespace": "_types" }, - "specLocation": "_types/common.ts#L123-L123", + "specLocation": "_types/common.ts#L125-L125", "type": { "kind": "instance_of", "type": { @@ -44300,7 +44441,7 @@ } } ], - "specLocation": "_types/Stats.ts#L223-L229" + "specLocation": "_types/Stats.ts#L243-L249" }, { "kind": "enum", @@ -44999,7 +45140,7 @@ } } ], - "specLocation": "_types/Stats.ts#L231-L250" + "specLocation": "_types/Stats.ts#L251-L270" }, { "kind": "interface", @@ -45049,7 +45190,7 @@ "name": "SearchType", "namespace": "_types" }, - "specLocation": "_types/common.ts#L273-L278" + "specLocation": "_types/common.ts#L275-L280" }, { "kind": "interface", @@ -45356,7 +45497,7 @@ } } ], - "specLocation": "_types/Stats.ts#L252-L345" + "specLocation": "_types/Stats.ts#L272-L365" }, { "kind": "type_alias", @@ -45364,7 +45505,7 @@ "name": "SequenceNumber", "namespace": "_types" }, - "specLocation": "_types/common.ts#L120-L120", + "specLocation": "_types/common.ts#L122-L122", "type": { "kind": "instance_of", "type": { @@ -45379,7 +45520,7 @@ "name": "Service", "namespace": "_types" }, - "specLocation": "_types/common.ts#L76-L76", + "specLocation": "_types/common.ts#L78-L78", "type": { "kind": "instance_of", "type": { @@ -45521,7 +45662,7 @@ } } ], - "specLocation": "_types/Stats.ts#L33-L45" + "specLocation": "_types/Stats.ts#L53-L65" }, { "kind": "interface", @@ -45598,7 +45739,7 @@ "name": "Slices", "namespace": "_types" }, - "specLocation": "_types/common.ts#L359-L364", + "specLocation": "_types/common.ts#L361-L366", "type": { "items": [ { @@ -45631,7 +45772,7 @@ "name": "SlicesCalculation", "namespace": "_types" }, - "specLocation": "_types/common.ts#L366-L374" + "specLocation": "_types/common.ts#L368-L376" }, { "kind": "type_alias", @@ -45921,7 +46062,7 @@ } } ], - "specLocation": "_types/Stats.ts#L347-L374" + "specLocation": "_types/Stats.ts#L367-L394" }, { "kind": "interface", @@ -46027,7 +46168,7 @@ "name": "SuggestMode", "namespace": "_types" }, - "specLocation": "_types/common.ts#L280-L293" + "specLocation": "_types/common.ts#L282-L295" }, { "description": "The suggestion name as returned from the server. Depending whether typed_keys is specified this could come back\nin the form of `name#type` instead of simply `name`", @@ -46036,7 +46177,7 @@ "name": "SuggestionName", "namespace": "_types" }, - "specLocation": "_types/common.ts#L143-L147", + "specLocation": "_types/common.ts#L145-L149", "type": { "kind": "instance_of", "type": { @@ -46105,7 +46246,7 @@ "name": "TaskId", "namespace": "_types" }, - "specLocation": "_types/common.ts#L124-L124", + "specLocation": "_types/common.ts#L126-L126", "type": { "items": [ { @@ -46181,7 +46322,7 @@ "name": "ThreadType", "namespace": "_types" }, - "specLocation": "_types/common.ts#L295-L301" + "specLocation": "_types/common.ts#L297-L303" }, { "description": "Time of day, expressed as HH:MM:SS", @@ -46450,7 +46591,7 @@ } } ], - "specLocation": "_types/Stats.ts#L376-L384" + "specLocation": "_types/Stats.ts#L396-L404" }, { "kind": "type_alias", @@ -46537,7 +46678,7 @@ "name": "Username", "namespace": "_types" }, - "specLocation": "_types/common.ts#L192-L192", + "specLocation": "_types/common.ts#L194-L194", "type": { "kind": "instance_of", "type": { @@ -46552,7 +46693,7 @@ "name": "Uuid", "namespace": "_types" }, - "specLocation": "_types/common.ts#L117-L117", + "specLocation": "_types/common.ts#L119-L119", "type": { "kind": "instance_of", "type": { @@ -46567,7 +46708,7 @@ "name": "VersionNumber", "namespace": "_types" }, - "specLocation": "_types/common.ts#L94-L94", + "specLocation": "_types/common.ts#L96-L96", "type": { "kind": "instance_of", "type": { @@ -46582,7 +46723,7 @@ "name": "VersionString", "namespace": "_types" }, - "specLocation": "_types/common.ts#L96-L96", + "specLocation": "_types/common.ts#L98-L98", "type": { "kind": "instance_of", "type": { @@ -46614,7 +46755,7 @@ "name": "VersionType", "namespace": "_types" }, - "specLocation": "_types/common.ts#L98-L114" + "specLocation": "_types/common.ts#L100-L116" }, { "kind": "enum", @@ -46630,7 +46771,7 @@ "name": "WaitForActiveShardOptions", "namespace": "_types" }, - "specLocation": "_types/common.ts#L303-L307" + "specLocation": "_types/common.ts#L305-L309" }, { "codegenNames": [ @@ -46642,7 +46783,7 @@ "name": "WaitForActiveShards", "namespace": "_types" }, - "specLocation": "_types/common.ts#L134-L135", + "specLocation": "_types/common.ts#L136-L137", "type": { "items": [ { @@ -46689,7 +46830,7 @@ "name": "WaitForEvents", "namespace": "_types" }, - "specLocation": "_types/common.ts#L309-L316" + "specLocation": "_types/common.ts#L311-L318" }, { "kind": "interface", @@ -46752,7 +46893,7 @@ } } ], - "specLocation": "_types/Stats.ts#L386-L391" + "specLocation": "_types/Stats.ts#L406-L411" }, { "kind": "interface", @@ -79175,7 +79316,7 @@ } } ], - "specLocation": "async_search/_types/AsyncSearchResponseBase.ts#L44-L48" + "specLocation": "async_search/_types/AsyncSearchResponseBase.ts#L50-L54" }, { "kind": "interface", @@ -79281,9 +79422,41 @@ "namespace": "_types" } } + }, + { + "description": "Indicates when the async search completed. Only present\nwhen the search has completed.", + "name": "completion_time", + "required": false, + "type": { + "kind": "instance_of", + "type": { + "name": "DateTime", + "namespace": "_types" + } + } + }, + { + "name": "completion_time_in_millis", + "required": false, + "type": { + "generics": [ + { + "kind": "instance_of", + "type": { + "name": "UnitMillis", + "namespace": "_types" + } + } + ], + "kind": "instance_of", + "type": { + "name": "EpochTime", + "namespace": "_types" + } + } } ], - "specLocation": "async_search/_types/AsyncSearchResponseBase.ts#L24-L43" + "specLocation": "async_search/_types/AsyncSearchResponseBase.ts#L24-L49" }, { "attachedBehaviors": [ @@ -79497,7 +79670,7 @@ "name": "Response", "namespace": "async_search.status" }, - "specLocation": "async_search/status/AsyncSearchStatusResponse.ts#L34-L36" + "specLocation": "async_search/status/AsyncSearchStatusResponse.ts#L39-L41" }, { "inherits": { @@ -79524,6 +79697,18 @@ } } }, + { + "description": "Metadata about clusters involved in the cross-cluster search.\nNot shown for local-only searches.", + "name": "_clusters", + "required": false, + "type": { + "kind": "instance_of", + "type": { + "name": "ClusterStatistics", + "namespace": "_types" + } + } + }, { "description": "If the async search completed, this field shows the status code of the search.\nFor example, 200 indicates that the async search was successfully completed.\n503 indicates that the async search was completed with an error.", "name": "completion_status", @@ -79537,7 +79722,7 @@ } } ], - "specLocation": "async_search/status/AsyncSearchStatusResponse.ts#L24-L33" + "specLocation": "async_search/status/AsyncSearchStatusResponse.ts#L24-L38" }, { "attachedBehaviors": [ diff --git a/output/typescript/types.ts b/output/typescript/types.ts index 41f3dcfe54..df53da12db 100644 --- a/output/typescript/types.ts +++ b/output/typescript/types.ts @@ -2055,14 +2055,28 @@ export type Bytes = 'b' | 'kb' | 'mb' | 'gb' | 'tb' | 'pb' export type CategoryId = string +export type ClusterAlias = string + +export interface ClusterDetails { + status: ClusterSearchStatusEnum + indices: string + took?: long + timed_out: boolean + _shards?: ShardStatistics + failures?: ShardFailure[] +} + export type ClusterInfoTarget = '_all' | 'http' | 'ingest' | 'thread_pool' | 'script' export type ClusterInfoTargets = ClusterInfoTarget | ClusterInfoTarget[] +export type ClusterSearchStatusEnum = 'running' | 'successful' | 'partial' | 'skipped' | 'failed' + export interface ClusterStatistics { skipped: integer successful: integer total: integer + details?: Record } export interface CompletionStats { @@ -6105,6 +6119,8 @@ export interface AsyncSearchAsyncSearchResponseBase { expiration_time_in_millis: EpochTime start_time?: DateTime start_time_in_millis: EpochTime + completion_time?: DateTime + completion_time_in_millis?: EpochTime } export interface AsyncSearchDeleteRequest extends RequestBase { @@ -6130,6 +6146,7 @@ export type AsyncSearchStatusResponse = AsyncSearchStatusStatusResponseBase export interface AsyncSearchStatusStatusResponseBase extends AsyncSearchAsyncSearchResponseBase { _shards: ShardStatistics + _clusters?: ClusterStatistics completion_status?: integer } diff --git a/specification/_types/Stats.ts b/specification/_types/Stats.ts index 8292b61595..9141685b44 100644 --- a/specification/_types/Stats.ts +++ b/specification/_types/Stats.ts @@ -19,7 +19,7 @@ import { ShardFileSizeInfo } from '@indices/stats/types' import { Dictionary } from '@spec_utils/Dictionary' -import { ByteSize, Field, Name, VersionString } from './common' +import { ByteSize, ClusterAlias, Field, Name, VersionString } from './common' import { ShardFailure } from './Errors' import { double, integer, long, uint } from './Numeric' import { Duration, DurationValue, UnitMillis } from '@_types/Time' @@ -28,6 +28,26 @@ export class ClusterStatistics { skipped: integer successful: integer total: integer + details?: Dictionary +} + +enum ClusterSearchStatusEnum { + running = 0, + successful = 1, + partial = 2, + skipped = 3, + failed = 4 +} + +property: ClusterSearchStatusEnum + +export class ClusterDetails { + status: ClusterSearchStatusEnum + indices: string + took?: long + timed_out: boolean + _shards?: ShardStatistics + failures?: ShardFailure[] } export class ShardStatistics { diff --git a/specification/_types/common.ts b/specification/_types/common.ts index d524ee738c..37f3b616ad 100644 --- a/specification/_types/common.ts +++ b/specification/_types/common.ts @@ -69,6 +69,8 @@ export type LongId = string export type IndexMetrics = string export type Metrics = string | string[] +export type ClusterAlias = string + export type Name = string export type Names = Name | Name[] diff --git a/specification/async_search/_types/AsyncSearchResponseBase.ts b/specification/async_search/_types/AsyncSearchResponseBase.ts index d61fa179dc..b909c943c7 100644 --- a/specification/async_search/_types/AsyncSearchResponseBase.ts +++ b/specification/async_search/_types/AsyncSearchResponseBase.ts @@ -40,6 +40,12 @@ export class AsyncSearchResponseBase { expiration_time_in_millis: EpochTime start_time?: DateTime start_time_in_millis: EpochTime + /** + * Indicates when the async search completed. Only present + * when the search has completed. + */ + completion_time?: DateTime + completion_time_in_millis?: EpochTime } export class AsyncSearchDocumentResponseBase< TDocument diff --git a/specification/async_search/status/AsyncSearchStatusResponse.ts b/specification/async_search/status/AsyncSearchStatusResponse.ts index 221c912096..278b406e33 100644 --- a/specification/async_search/status/AsyncSearchStatusResponse.ts +++ b/specification/async_search/status/AsyncSearchStatusResponse.ts @@ -19,11 +19,16 @@ import { AsyncSearchResponseBase } from '@async_search/_types/AsyncSearchResponseBase' import { integer } from '@_types/Numeric' -import { ShardStatistics } from '@_types/Stats' +import { ClusterStatistics, ShardStatistics } from '@_types/Stats' export class StatusResponseBase extends AsyncSearchResponseBase { /** Indicates how many shards have run the query so far. */ _shards: ShardStatistics + /** + * Metadata about clusters involved in the cross-cluster search. + * Not shown for local-only searches. + */ + _clusters?: ClusterStatistics /** * If the async search completed, this field shows the status code of the search. * For example, 200 indicates that the async search was successfully completed.