-
Notifications
You must be signed in to change notification settings - Fork 25.2k
keyword search in ESQL is too slow compared to KQL/DSL #104517
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
Comments
Can't see the wildcards in the KQL query. |
I couldn't find an ESQL command to just put the |
Pinging @elastic/es-analytical-engine (Team:Analytics) |
@getkub Have you tried this with the |
Sorry , i forgot mention in the search. Yes , I did put the |
@getkub There are efforts to bring some search functionalities into ES|QL recently, and users have the options to run KQL, match and query string queries through ES|QL now. The query in the description can be rewritten like below by leveraging
Please find more details and example here. |
If you do:
If it's slow you are likely getting Easier is using the mapping to make those FWIW the KQL and |
Thanks for that. This will be great solution. We will wait for 9.1.x to upgrade as don't want to change all the detection rules to |
Elasticsearch Version
8.11.4
Installed Plugins
No response
Java Version
bundled
OS Version
Kubernetes
Problem Description
in KQL Searching a keyword is much faster. But in ESQL there is no 'keyword' search function. But only wildcard and it is too slow
KQL is much faster on large datasets (due to keyword search ability) and ESQL is very poor and even time-out in most cases
Steps to Reproduce
Eg
I couldn't find an ESQL command to just put the
UNITED
keyword as I've to put*UNITED*
Suggestions
Some options like
CONTAINS
orSEARCH
so it dedicately searches for keyword?LIKE
command to put keywords. So| where employer_country LIKE " UNITED "
(there is space before after UNITED)The text was updated successfully, but these errors were encountered: