Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[DOCS] address timing issue in async search docs tests
The docs snippets for submit async search have proven difficult to test as it is not possible to guarantee that you get a response that is not final, even when providing `wait_for_completion=0`. In the docs we want to show though a proper long-running query, and its first response should be partial rather than final. With this commit we adapt the docs snippets to show a partial response, and replace under the hood all that's needed to make the snippets tests succeed when we get a final response. Also, increased the timeout so we always get a final response. Closes elastic#53887 Closes elastic#53891
- Loading branch information