Skip to content

Commit 199d131

Browse files
fbaligandjimczi
authored andcommitted
Improve query string docs (#28882)
fix query string syntax doc when OR operator is missed
1 parent 437ad06 commit 199d131

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

docs/reference/query-dsl/query-string-syntax.asciidoc

+2-4
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,9 @@ search terms, but it is possible to specify other fields in the query syntax:
2323

2424
status:active
2525

26-
* where the `title` field contains `quick` or `brown`.
27-
If you omit the OR operator the default operator will be used
26+
* where the `title` field contains `quick` or `brown`
2827

2928
title:(quick OR brown)
30-
title:(quick brown)
3129

3230
* where the `author` field contains the exact phrase `"john smith"`
3331

@@ -36,7 +34,7 @@ search terms, but it is possible to specify other fields in the query syntax:
3634
* where any of the fields `book.title`, `book.content` or `book.date` contains
3735
`quick` or `brown` (note how we need to escape the `*` with a backslash):
3836

39-
book.\*:(quick brown)
37+
book.\*:(quick OR brown)
4038

4139
* where the field `title` has any non-null value:
4240

0 commit comments

Comments
 (0)