elasticsearch/docs/reference/search
Luca Cavanna aa56f91fba
[DOCS] address timing issue in async search docs tests (#53910)
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 #53887
Closes #53891
2020-03-23 14:17:53 +01:00
..
request Small corrections to stored_fields docs. (#53247) 2020-03-09 10:57:23 -07:00
suggesters [Docs] Fix typo in suggesters search API doc (#48477) 2019-10-29 09:57:17 +01:00
async-search.asciidoc [DOCS] address timing issue in async search docs tests (#53910) 2020-03-23 14:17:53 +01:00
count.asciidoc [Docs] Clarify default value for `allow_no_indices` (#52635) 2020-02-24 11:37:29 +01:00
explain.asciidoc Upgrade to lucene 8.4.0-snapshot-662c455. (#50016) 2019-12-10 17:09:36 +01:00
field-caps.asciidoc [Docs] Clarify default value for `allow_no_indices` (#52635) 2020-02-24 11:37:29 +01:00
multi-search.asciidoc [DOCS] Correct multi search API docs (#52523) 2020-02-24 07:41:53 -05:00
profile.asciidoc Optimize sort on numeric long and date fields. 2019-11-26 09:24:25 -05:00
rank-eval.asciidoc Adds recall@k metric to rank eval API (#52577) 2020-02-27 10:43:42 +01:00
request-body.asciidoc [DOCS] Fix search request body links (#50500) 2019-12-26 14:20:51 -05:00
search-shards.asciidoc [Docs] Clarify default value for `allow_no_indices` (#52635) 2020-02-24 11:37:29 +01:00
search-template.asciidoc [Docs] Clarify default value for `allow_no_indices` (#52635) 2020-02-24 11:37:29 +01:00
search.asciidoc [DOCS] Correct `hits.total.relation` response parm def (#52847) 2020-03-04 08:22:40 -05:00
suggesters.asciidoc [DOCS] Reformat suggesters page. (#47010) 2019-09-25 14:38:47 +02:00
uri-request.asciidoc Upgrade to lucene 8.4.0-snapshot-662c455. (#50016) 2019-12-10 17:09:36 +01:00
validate.asciidoc [Docs] Clarify default value for `allow_no_indices` (#52635) 2020-02-24 11:37:29 +01:00