Skip to content

Commit

Permalink
[DOCS] Update example request description (#68587) (#68659)
Browse files Browse the repository at this point in the history
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 <guay_j@yahoo.fr>
  • Loading branch information
jrodewig and jguay committed Feb 8, 2021
1 parent 138cf89 commit dd1cfc1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/reference/query-dsl/intervals-query.asciidoc
Expand Up @@ -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
Expand Down

0 comments on commit dd1cfc1

Please sign in to comment.