From c86ffd1d23c18e297c7f54692e69b25f97b125dd Mon Sep 17 00:00:00 2001 From: James Rodewig <40268737+jrodewig@users.noreply.github.com> Date: Mon, 8 Feb 2021 08:50:56 -0500 Subject: [PATCH] [DOCS] Update example request description (#68587) (#68658) The doc is misleading : The following intervals search returns documents containing `my favorite food` **immediately** followed by `hot water` or `cold porridge` max_gaps apply only to the match query and is not used for checking proximity with the other match, the example given actually`This search would match a my_text value of my favorite food is cold` Co-authored-by: Julien Guay --- docs/reference/query-dsl/intervals-query.asciidoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/reference/query-dsl/intervals-query.asciidoc b/docs/reference/query-dsl/intervals-query.asciidoc index b408e04a6b8cce..6970b2b54e108f 100644 --- a/docs/reference/query-dsl/intervals-query.asciidoc +++ b/docs/reference/query-dsl/intervals-query.asciidoc @@ -18,7 +18,7 @@ parent sources. ==== Example request The following `intervals` search returns documents containing `my -favorite food` immediately followed by `hot water` or `cold porridge` in the +favorite food` without any gap, followed by `hot water` or `cold porridge` in the `my_text` field. This search would match a `my_text` value of `my favorite food is cold