Skip to content

Conversation

jrodewig
Copy link
Contributor

Documents the indexOf EQL function.

Relates to #54543 and #53856

@jrodewig jrodewig added >docs General docs changes :Analytics/EQL EQL querying labels Apr 10, 2020
@jrodewig jrodewig requested a review from astefan April 10, 2020 15:35
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-docs (>docs)

@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-ql (:Query Languages/EQL)

Copy link
Contributor

@astefan astefan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Left just one minor comment.

Starting position for matching. The function will not return positions before
this one. Defaults to `0`.
Positions are zero-indexed. Negative offsets are supported.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you add an example with a negative offset?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure thing. Added some examples with db8e027.

@jrodewig jrodewig merged commit 881b214 into elastic:master Apr 15, 2020
@jrodewig jrodewig deleted the docs__eql-fn-indexof branch April 15, 2020 15:28
@jrodewig
Copy link
Contributor Author

Backport commits

master 881b214
7.x 4f2ab96

jrodewig added a commit that referenced this pull request Apr 15, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

:Analytics/EQL EQL querying >docs General docs changes

3 participants