Add snippet for the search_type query parameter (#43540)

This commit is contained in:
Emmanuel DEMEY 2019-08-12 00:33:42 +02:00 committed by Mayya Sharipova
parent cf9a73b5ac
commit f8c08c537b
1 changed files with 13 additions and 1 deletions

View File

@ -50,6 +50,13 @@ During the second phase, the coordinating node requests the document
content (and highlighted snippets, if any) from *only the relevant
shards*.
[source,js]
--------------------------------------------------
GET twitter/_search?search_type=query_then_fetch
--------------------------------------------------
// CONSOLE
// TEST[setup:twitter]
NOTE: This is the default setting, if you do not specify a `search_type`
in your request.
@ -62,4 +69,9 @@ Same as "Query Then Fetch", except for an initial scatter phase which
goes and computes the distributed term frequencies for more accurate
scoring.
[source,js]
--------------------------------------------------
GET twitter/_search?search_type=dfs_query_then_fetch
--------------------------------------------------
// CONSOLE
// TEST[setup:twitter]