Skip to content

Commit

Permalink
Add snippet for the search_type query parameter (#43540)
Browse files Browse the repository at this point in the history
  • Loading branch information
EmmanuelDemey authored and mayya-sharipova committed Aug 11, 2019
1 parent 18f5690 commit 4e8a15d
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion docs/reference/search/request/search-type.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand All @@ -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]

0 comments on commit 4e8a15d

Please sign in to comment.