Complete the code to start an async search request.
POST /[1] { "query": { "match_all": {} } }
/start which is not a valid endpoint./query which is incorrect.The endpoint /_async_search starts an async search request.
Complete the code to retrieve the async search result by ID.
GET /_async_search/[1]You must replace {{BLANK_1}} with the actual async search ID returned when starting the search.
Fix the error in the async search request to set the wait_for_completion_timeout to 1 second.
POST /_async_search?[1]=1s { "query": { "match_all": {} } }
The correct parameter to set the wait time for async search completion is wait_for_completion_timeout.
Fill both blanks to create an async search request that keeps the search alive for 5 minutes and returns partial results.
POST /_async_search?[1]=5m&[2]=0s { "query": { "match": { "message": "error" } } }
keep_alive with wait_for_completion_timeout.keep_on_partial.keep_alive=5m sets how long the async search is kept alive. wait_for_completion_timeout=0s returns partial results immediately.
Fill in the blank to create a request that cancels an async search by its ID.
DELETE /_async_search/[1]The endpoint is DELETE /_async_search/<your_async_search_id> to cancel an async search.