-
Notifications
You must be signed in to change notification settings - Fork 25.6k
Closed
Labels
:Search Relevance/ES|QLSearch functionality in ES|QLSearch functionality in ES|QL:SearchOrg/RelevanceLabel for the Search (solution/org) Relevance teamLabel for the Search (solution/org) Relevance team>enhancementTeam:Search - RelevanceThe Search organization Search Relevance teamThe Search organization Search Relevance teamTeam:Search RelevanceMeta label for the Search Relevance team in ElasticsearchMeta label for the Search Relevance team in Elasticsearchv9.3.0
Description
Context
- Bug #135772 has been resolved, making the KQL function case sensitive by default (consistent with Kibana and documentation).
- Some users may want to perform case-insensitive queries on keyword fields (see this comment).
- The query DSL implementation of KQL supports multiple optional parameters (
case_insensitive,default_field,time_zone, andboost). - The ES|QL
kqlfunction currently relies on the query DSL but these parameters are not exposed through the ES|QL function
Acceptance Criteria
- Users can specify all KQL query parameters supported by the underlying KqlQueryBuilder in the ES|QL KQL function:
case_insensitive(boolean): Control case sensitivity for field names and keyword/text termsdefault_field(string): Default field pattern when no field is specified in the querytime_zone(string): Time zone for interpreting date literalsboost(float): Query boost for relevance scoring
- If parameters are not specified, the default behavior matches the underlying KqlQueryBuilder defaults
- Documentation clearly explains all available parameters and their behavior
- Parameter validation matches the query DSL implementation
Proposed Syntax
Allow optional named parameters for the function:
| WHERE KQL("title: value", {"case_insensitive": true})
| WHERE KQL("timeout", {"default_field": "logs.*", "time_zone": "Europe/Paris"})
| WHERE KQL("error", {"case_insensitive": true, "boost": 2.0})
Metadata
Metadata
Assignees
Labels
:Search Relevance/ES|QLSearch functionality in ES|QLSearch functionality in ES|QL:SearchOrg/RelevanceLabel for the Search (solution/org) Relevance teamLabel for the Search (solution/org) Relevance team>enhancementTeam:Search - RelevanceThe Search organization Search Relevance teamThe Search organization Search Relevance teamTeam:Search RelevanceMeta label for the Search Relevance team in ElasticsearchMeta label for the Search Relevance team in Elasticsearchv9.3.0