Skip to content

[6.x] Update Kuery Syntax (#15857)#17005

Merged
Bargs merged 1 commit intoelastic:6.xfrom
Bargs:backport/15857/6.x
Mar 7, 2018
Merged

[6.x] Update Kuery Syntax (#15857)#17005
Bargs merged 1 commit intoelastic:6.xfrom
Bargs:backport/15857/6.x

Conversation

@Bargs
Copy link
Contributor

@Bargs Bargs commented Mar 7, 2018

This PR evolves Kuery into a simplified, more lucene-like language. In a follow up PR we plan on getting rid of the language switcher dropdown and instead add a checkbox that will allow users to opt-in to this syntax, which will feel less like a separate language and more like a set of enhancements to the existing lucene query syntax.

This PR also updates the simple grammar to solve the following:

  • Wildcards in field names
  • "is one of" shorthand (e.g. foo:(bar OR baz OR qux))
  • Don't split on whitespace (require explicit AND/ORs, case insensitive)
  • "exists" query (e.g. foo:*)
  • Improved range query shorthands (e.g. foo <= 1)
  • Wildcard queries

Since this new syntax is simpler and does not support every filter type like old Kuery did, this PR also brings back the filter bar when kuery is selected in the language picker.

See the documentation updates in this PR if you need an overview of the new syntax (and let us know if the documentation is lacking).

This PR evolves Kuery into a simplified, more lucene-like language. In a follow up PR we plan on getting rid of the language switcher dropdown and instead add a checkbox that will allow users to opt-in to this syntax, which will feel less like a separate language and more like a set of enhancements to the existing lucene query syntax.

This PR also updates the simple grammar to solve the following:

* Wildcards in field names
* "is one of" shorthand (e.g. foo:(bar OR baz OR qux))
* Don't split on whitespace (require explicit AND/ORs, case insensitive)
* "exists" query (e.g. foo:*)
* Improved range query shorthands (e.g. foo <= 1)
* Wildcard queries

Since this new syntax is simpler and does not support every filter type like old Kuery did, this PR also brings back the filter bar when kuery is selected in the language picker.

See the documentation updates in this PR if you need an overview of the new syntax (and let us know if the documentation is lacking).
@Bargs Bargs added the backport This PR is a backport of another PR label Mar 7, 2018
@elasticmachine
Copy link
Contributor

💚 Build Succeeded

@Bargs Bargs merged commit 5317c73 into elastic:6.x Mar 7, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport This PR is a backport of another PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants