Get the async search status Added in 7.11.0
Get the status of a previously submitted async search request given its identifier, without retrieving search results.
If the Elasticsearch security features are enabled, use of this API is restricted to the monitoring_user
role.
Path parameters
-
A unique identifier for the async search.
Responses
-
200 application/json
Hide response attributes Show response attributes object
-
id string
-
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 totrue
. -
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
isfalse
. expiration_time string | number
A date and time, either as a string whose format can depend on the context (defaulting to ISO 8601), or a number of milliseconds since the Epoch. Elasticsearch accepts both as input, but will generally output a string representation.
One of: Time unit for milliseconds
-
expiration_time_in_millis number
Time unit for milliseconds
start_time string | number
A date and time, either as a string whose format can depend on the context (defaulting to ISO 8601), or a number of milliseconds since the Epoch. Elasticsearch accepts both as input, but will generally output a string representation.
One of: Time unit for milliseconds
-
start_time_in_millis number
Time unit for milliseconds
completion_time string | number
A date and time, either as a string whose format can depend on the context (defaulting to ISO 8601), or a number of milliseconds since the Epoch. Elasticsearch accepts both as input, but will generally output a string representation.
One of: Time unit for milliseconds
-
completion_time_in_millis number
Time unit for milliseconds
-
Additional properties are allowed.
Hide _shards attributes Show _shards attributes object
-
failures array[object]
Hide failures attributes Show failures attributes object
-
index string
-
node string
-
Additional properties are allowed.
Hide reason attributes Show reason attributes object
-
The type of error
-
reason string
A human-readable explanation of the error, in english
-
stack_trace string
The server stack trace. Present only if the
error_trace=true
parameter was sent with the request. -
caused_by object
Additional properties are allowed.
-
root_cause array[object]
-
suppressed array[object]
-
-
status string
-
-
skipped number
-
_clusters object
Additional properties are allowed.
Hide _clusters attributes Show _clusters attributes object
-
details object
Hide details attribute Show details attribute object
-
Additional properties are allowed.
Hide * attributes Show * attributes object
-
-
completion_status number
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. 503 indicates that the async search was completed with an error.
-
curl \
-X GET http://api.example.com/_async_search/status/{id}