-
Notifications
You must be signed in to change notification settings - Fork 25.6k
ES|QL: improve docs about escaping for GROK, DISSECT, LIKE, RLIKE #115320
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
ES|QL: improve docs about escaping for GROK, DISSECT, LIKE, RLIKE #115320
Conversation
Documentation preview: |
@elasticmachine update branch |
@elasticmachine update branch |
@elasticmachine update branch |
Pinging @elastic/es-docs (Team:Docs) |
Pinging @elastic/es-analytical-engine (Team:Analytics) |
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.
I'd only note that in some cases we only give triple quotes examples, it might be good to keep some simple ones too. But LGTM.
Yeah, it's a bit extreme 😅 |
💔 Backport failed
You can use sqren/backport to manually backport by running |
Escaping special characters in strings is complex.
Escaping them in regex is painful.
We can make user's life easier by suggesting to use triple quotes strings in commands and operators that will likely contain special characters (GROK, DISSECT, LIKE, RLIKE). This will significantly reduce the number of escapes needed.
eg.
vs
or for the typical Windows paths:
vs
This PR enchances the docs for all the operators/commands mentioned above:
"""
in all the sample queriesFixes: #115051