async-search.asciidoc 1.1 KB

12345678910111213141516171819202122
  1. [role="xpack"]
  2. [testenv="basic"]
  3. [[async-search-intro]]
  4. == Long-running searches
  5. {es} generally allows you to quickly search across big amounts of data. There are
  6. situations where a search executes on many many shards, possibly against
  7. <<frozen-indices,frozen indices>> and spanning multiple
  8. <<modules-remote-clusters,remote clusters>>, for which
  9. results are not expected to be returned in milliseconds. When you need to
  10. execute long-running searches, synchronously
  11. waiting for its results to be returned is not ideal. Instead, Async search lets
  12. you submit a search request that gets executed _asynchronously_,
  13. monitor the progress of the request, and retrieve results at a later stage.
  14. You can also retrieve partial results as they become available but
  15. before the search has completed.
  16. You can submit an async search request using the <<submit-async-search,submit
  17. async search>> API. The <<get-async-search,get async search>> API allows you to
  18. monitor the progress of an async search request and retrieve its results. An
  19. ongoing async search can be deleted through the <<delete-async-search,delete
  20. async search>> API.