From b424f6c649d61b9dabb1aec00dfd97ae942c4e9b Mon Sep 17 00:00:00 2001 From: Julien Guay Date: Fri, 5 Feb 2021 14:37:36 +0000 Subject: [PATCH] Update intervals-query.asciidoc 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` --- 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 b408e04a6b8cc..6970b2b54e108 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