Skip to content

Commit

Permalink
Emphasize important difference between Kuery and Lucene query syntax (e…
Browse files Browse the repository at this point in the history
…lastic#13592)

Fixes elastic#13563

Brings additional attention to the fact that Kuery uses implicit ANDs whereas Lucene query syntax uses implicit ORs, which could confuse users if they're not aware of the difference.
  • Loading branch information
Bargs committed Aug 18, 2017
1 parent ea983c3 commit 39288a5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docs/discover/kuery.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ Multiple search terms are separated by whitespace.

`response:200 extension:php` will match documents where response matches 200 and extension matches php.

All terms must match by default. The language supports boolean logic with and/or operators. The above query is equivalent to `response:200 and extension:php`.
*All terms must match by default*. The language supports boolean logic with and/or operators. The above query is equivalent to `response:200 and extension:php`.
This is a departure from the Lucene query syntax where all terms are optional by default.

We can make terms optional by using `or`.

Expand Down

0 comments on commit 39288a5

Please sign in to comment.