[[reference-shared-types-async_search]] //////// =========================================================================================================================== || || || || || || || ██████╗ ███████╗ █████╗ ██████╗ ███╗ ███╗███████╗ || || ██╔══██╗██╔════╝██╔══██╗██╔══██╗████╗ ████║██╔════╝ || || ██████╔╝█████╗ ███████║██║ ██║██╔████╔██║█████╗ || || ██╔══██╗██╔══╝ ██╔══██║██║ ██║██║╚██╔╝██║██╔══╝ || || ██║ ██║███████╗██║ ██║██████╔╝██║ ╚═╝ ██║███████╗ || || ╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝╚═════╝ ╚═╝ ╚═╝╚══════╝ || || || || || || This file is autogenerated, DO NOT send pull requests that changes this file directly. || || You should update the script that does the generation, which can be found in: || || https://github.com/elastic/elastic-client-generator-js || || || || You can run the script with the following command: || || npm run elasticsearch -- --version || || || || || || || =========================================================================================================================== //////// == Shared AsyncSearch types [discrete] [[AsyncSearchAsyncSearch]] === AsyncSearchAsyncSearch [pass] ++++
++++
interface AsyncSearchAsyncSearch>, <>>> {
  pass:[/**] @property aggregations Partial aggregations results, coming from the shards that have already completed the execution of the query. */
  aggregations?: TAggregations
  _clusters?: <>
  fields?: Record
  hits: <>
  max_score?: <>
  pass:[/**] @property num_reduce_phases Indicates how many reductions of the results have been performed. If this number increases compared to the last retrieved results for a get asynch search request, you can expect additional results included in the search response. */
  num_reduce_phases?: <>
  profile?: <>
  pit_id?: <>
  _scroll_id?: <>
  pass:[/**] @property _shards Indicates how many shards have run the query. Note that in order for shard results to be included in the search response, they need to be reduced first. */
  _shards: <>
  suggest?: Record<<>, <>[]>
  terminated_early?: boolean
  timed_out: boolean
  took: <>
}
[pass]
++++
++++ [discrete] [[AsyncSearchAsyncSearchDocumentResponseBase]] === AsyncSearchAsyncSearchDocumentResponseBase [pass] ++++
++++
interface AsyncSearchAsyncSearchDocumentResponseBase>, <>>> extends <> {
  response: <>
}
[pass]
++++
++++ [discrete] [[AsyncSearchAsyncSearchResponseBase]] === AsyncSearchAsyncSearchResponseBase [pass] ++++
++++
interface AsyncSearchAsyncSearchResponseBase {
  id?: <>
  pass:[/**] @property is_partial When the query is no longer running, this property indicates whether the search failed or was successfully completed on all shards. While the query is running, `is_partial` is always set to `true`. */
  is_partial: boolean
  pass:[/**] @property is_running Indicates whether the search is still running or has completed. NOTE: If the search failed after some shards returned their results or the node that is coordinating the async search dies, results may be partial even though `is_running` is `false`. */
  is_running: boolean
  pass:[/**] @property expiration_time Indicates when the async search will expire. */
  expiration_time?: <>
  expiration_time_in_millis: <><<>>
  start_time?: <>
  start_time_in_millis: <><<>>
  pass:[/**] @property completion_time Indicates when the async search completed. Only present when the search has completed. */
  completion_time?: <>
  completion_time_in_millis?: <><<>>
}
[pass]
++++
++++