﻿---
title: stack es async-search get cli command
description: Get async search results. Behaviour flags: --dry-run — validate all inputs and exit without performing any action 
url: https://www.elastic.co/elastic/docs-builder/docs/4116/reference/elastic-cli/cli/stack/es/async-search/get
applies_to:
  - Elastic Cloud Serverless: Preview
  - Elastic Stack: Preview
---

# stack es async-search get cli command
<cli-modifiers>
</cli-modifiers>

```bash
elastic stack es async-search get --id <id> [options]
```

Get async search results.
**Behaviour flags:**
`--dry-run` — validate all inputs and exit without performing any action

## Options

<definitions>
  <definition term="--id string required">
    A unique identifier for the async search.
  </definition>
  <definition term="--keep-alive string">
    The length of time that the async search should be available in the cluster.
    When not specified, the `keep_alive` set with the corresponding submit async request will be used.
    Otherwise, it is possible to override the value and extend the validity of the request.
    When this period expires, the search, if still running, is cancelled.
    If the search is completed, its saved results are deleted.
  </definition>
  <definition term="--typed-keys">
    Specify whether aggregation and suggester names should be prefixed by their respective types in the response
  </definition>
  <definition term="--wait-for-completion-timeout string">
    Specifies to wait for the search to be completed up until the provided timeout.
    Final results will be returned if available before the timeout expires, otherwise the currently available results will be returned once the timeout expires.
    By default no timeout is set meaning that the currently available results will be returned without any additional wait.
  </definition>
  <definition term="--return-intermediate-results">
    Specifies whether the response should contain intermediate results if the query is still running when the wait_for_completion_timeout
    expires or if no wait_for_completion_timeout is specified.
    If true and the search is still running, the search response
    will include any hits and partial aggregations that are available.
    If false and the search is still running, the search response will not include any hits (but possibly include
    total hits) nor will include any partial aggregations.
    When not specified, the intermediate results are returned for running queries.
  </definition>
  <definition term="--error-trace">
    When set to `true` Elasticsearch will include the full stack trace of errors
    when they occur.
  </definition>
  <definition term="--filter-path string">
    Comma-separated list of filters in dot notation which reduce the response
    returned by Elasticsearch.
    **Repeatable:** pass `--filter-path` multiple times to supply more than one value
  </definition>
  <definition term="--human">
    When set to `true` will return statistics in a format suitable for humans.
    For example `"exists_time": "1h"` for humans and
    `"exists_time_in_millis": 3600000` for computers. When disabled the human
    readable values will be omitted. This makes sense for responses being consumed
    only by machines.
  </definition>
  <definition term="--pretty">
    If set to `true` the returned JSON will be "pretty-formatted". Only use
    this option for debugging only.
  </definition>
  <definition term="--input-file string">
    path to a JSON file to use as command input
  </definition>
  <definition term="--dry-run">
    validate all inputs and exit without performing any action (preview changes without applying them)
  </definition>
</definitions>


## Global Options

<definitions>
  <definition term="--json">
    output as JSON
  </definition>
</definitions>