[ES|QL] Add optional parameters support to KQL function#135895
[ES|QL] Add optional parameters support to KQL function#135895afoucret merged 21 commits intoelastic:mainfrom
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?
|
carlosdelest
left a comment
There was a problem hiding this comment.
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