Long-running searches
Elasticsearch generally allows you to quickly search across big amounts of data. There are situations where a search executes on many shards, possibly against frozen indices and spanning multiple remote clusters, for which results are not expected to be returned in milliseconds. When you need to execute long-running searches, synchronously waiting for its results to be returned is not ideal. Instead, Async search lets you submit a search request that gets executed asynchronously, monitor the progress of the request, and retrieve results at a later stage. You can also retrieve partial results as they become available but before the search has completed.
You can submit an async search request using the submit async search API. The get async search API allows you to monitor the progress of an async search request and retrieve its results. An ongoing async search can be deleted through the delete async search API.
© 2023-2025 Elasticsearch
As of September 2024, Elasticsearch is available under a choice of three licenses: the Server Side Public License (SSPL), the Elastic License, or the AGPLv3 (OSI approved).
Elasticsearch and the Elasticsearch logo are trademarks of Elasticsearch B.V., registered in the U.S. and in other countries.
https://www.elastic.co/guide/en/elasticsearch/reference/7.17/async-search-intro.html