Get the async search status
- GET /_async_search/status/{id}
Get the status of a previously submitted async search request given its identifier, without retrieving search results. If the Elasticsearch security features are enabled, the access to the status of a specific async search is restricted to:
- The user or API key that submitted the original async search request.
- Users that have the
monitorcluster privilege or greater privileges.
- Cluster privileges:
monitor
Path Parameters
-
idstring Idrequired -
A unique identifier for the async search.
Query Parameters
-
keep_alivestring Duration · default: 5d The length of time that the async search needs to be available. Ongoing async searches and any saved search results are deleted after this period.
Response
-
idstring Id -
is_partialbooleanrequired -
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_partialis always set totrue. -
is_runningbooleanrequired -
Indicates whether the search is still running or has completed.
info 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_runningisfalse. -
expiration_timeDateTime -
Indicates when the async search will expire.
-
expiration_time_in_millisEpochTimeUnitMillisrequired -
start_timeDateTime -
start_time_in_millisEpochTimeUnitMillisrequired -
completion_timeDateTime -
Indicates when the async search completed. It is present only when the search has completed.
-
completion_time_in_millisEpochTimeUnitMillis -
errorErrorCause -
typestringrequired -
The type of error
-
reasonstringnullable -
A human-readable explanation of the error, in English.
-
stack_tracestring -
The server stack trace. Present only if the
error_trace=trueparameter was sent with the request. -
caused_byErrorCause -
root_causeErrorCause -
suppressedErrorCause -
_shardsShardStatisticsrequired -
The number of shards that have run the query so far.
-
failednumber uintrequired -
The number of shards the operation or search attempted to run on but failed.
-
successfulnumber uintrequired -
The number of shards the operation or search succeeded on.
-
totalnumber uintrequired -
The number of shards the operation or search will run on overall.
-
failuresShardFailure -
indexstring IndexName -
nodestring -
reasonErrorCauserequired -
typestringrequired -
The type of error
-
reasonstringnullable -
A human-readable explanation of the error, in English.
-
stack_tracestring -
The server stack trace. Present only if the
error_trace=trueparameter was sent with the request. -
caused_byErrorCause -
root_causeErrorCause -
suppressedErrorCause -
shardnumber -
statusstring -
primaryboolean -
skippednumber uint -
_clustersClusterStatistics -
Metadata about clusters involved in the cross-cluster search. It is not shown for local-only searches.
-
completion_statusnumber -
If the async search completed, this field shows the status code of the search. For example,
200indicates that the async search was successfully completed.503indicates that the async search was completed with an error.