-
Notifications
You must be signed in to change notification settings - Fork 25.2k
[DOCS] EQL: Document substring
function
#53867
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
Adds documentation for the EQL `substring` function. Supporting changes: * Creates a new "EQL function reference" page * Updates the title of the "EQL syntax reference" page for consistency * Adds a brief "Functions" section to the EQL syntax docs * Updates EQL limitations docs to state that only array functions are unsupported
Pinging @elastic/es-docs (>docs) |
Pinging @elastic/es-search (:Search/EQL) |
@costin Cool. I thought that might the case. I'll just keep this PR as a draft until those are fixed up. Thanks! |
See #53935 |
substring
functionsubstring
function
@elasticmachine update branch |
@costin This is ready for review at your convenience. Thanks again! |
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 - @rw-access ?
End position for extraction. If this position is not provided, the function | ||
returns the remaining string. | ||
+ | ||
Positions are zero-indexed. Negative offsets are supported. |
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 would add that if the start is higher than the length of the string or end, an empty string is returned.
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.
Good note. Added with 9d38109.
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. thanks @jrodewig.
those examples are perfect.
only things that may be worth adding
- https://github.com/elastic/elasticsearch/pull/53867/files#r397951533
- it's implied that the end index is exclusive, and you can tell from the examples. but it could be worthwhile to make this explicit
Thanks very much @costin and @rw-access. |
Adds documentation for the EQL `substring` function. Supporting changes: * Creates a new "EQL function reference" page * Updates the title of the "EQL syntax reference" page for consistency * Adds a brief "Functions" section to the EQL syntax docs * Updates EQL limitations docs to state that only array functions are unsupported
Adds documentation for the EQL
substring
function.Supporting changes:
unsupported