Skip to content

fix query string syntax doc when OR operator is missed #28882

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Mar 30, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions docs/reference/query-dsl/query-string-syntax.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,9 @@ search terms, but it is possible to specify other fields in the query syntax:

status:active

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

title:(quick OR brown)
title:(quick brown)

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

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

book.\*:(quick brown)
book.\*:(quick OR brown)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1 to add an explicit OR


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

Expand Down