-
Notifications
You must be signed in to change notification settings - Fork 25.6k
[ES|QL] Add optional parameters support to KQL function #135895
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
Conversation
|
Pinging @elastic/es-search-relevance (Team:Search Relevance) |
|
Hi @afoucret, I've created a changelog YAML for you. |
ℹ️ Important: Docs version tagging👋 Thanks for updating the docs! Just a friendly reminder that our docs are now cumulative. This means all 9.x versions are documented on the same page and published off of the main branch, instead of creating separate pages for each minor version. We use applies_to tags to mark version-specific features and changes. Expand for a quick overviewWhen to use applies_to tags:✅ At the page level to indicate which products/deployments the content applies to (mandatory) What NOT to do:❌ Don't remove or replace information that applies to an older version 🤔 Need help?
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
As a follow up, should we add options to the DSL KQL YAML tests?
x-pack/plugin/esql/src/main/java/org/elasticsearch/xpack/esql/action/EsqlCapabilities.java
Show resolved
Hide resolved
...plugin/esql/src/main/java/org/elasticsearch/xpack/esql/expression/function/fulltext/Kql.java
Show resolved
Hide resolved
|
thank you! |
Summary
This PR implements support for optional parameters in the ES|QL
KQLfunction, allowing users to specify all KqlQueryBuilder parameters (case_insensitive,default_field,time_zone, andboost) through named parameters.Additionally, it significantly improves the KQL parser's handling of case-insensitive fieldless queries.
Closes #135823
Key Changes
1. ES|QL Function Enhancement
case_insensitive,time_zone,default_field, andboostparameters2. Case-Insensitive Fieldless Query Parser Improvements
case_insensitive=trueand no specific field is provided, the parser now creates individual field-specific queries instead of relying on MultiMatchQuery. It allows non case sensitive matching on keyword fields when searching all the fields.Syntax Examples
ES|QL Function with Parameters