OpenSearch/docs/reference/eql
Costin Leau bff3c7470e
EQL: Replace SearchHit in response with Event (#61428) (#61522)
The building block of the eql response is currently the SearchHit. This
is a problem since it is tied to an actual search, and thus has scoring,
highlighting, shard information and a lot of other things that are not
relevant for EQL.
This becomes a problem when doing sequence queries since the response is
not generated from one search query and thus there are no SearchHits to
speak of.
Emulating one is not just conceptually incorrect but also problematic
since most of the data is missed or made-up.

As such this PR introduces a simple class, Event, that maps nicely to
the terminology while hiding the ES internals (the use of SearchHit or
GetResult/GetResponse depending on the API used).

Fix #59764
Fix #59779

Co-authored-by: Igor Motov <igor@motovs.org>
(cherry picked from commit 997376fbe6ef2894038968842f5e0635731ede65)
2020-08-25 17:32:42 +03:00
..
delete-async-eql-search-api.asciidoc [DOCS] Refactor EQL docs (#60700) (#60745) 2020-08-05 11:25:18 -04:00
detect-threats-with-eql.asciidoc EQL: Replace SearchHit in response with Event (#61428) (#61522) 2020-08-25 17:32:42 +03:00
eql-search-api.asciidoc EQL: Replace SearchHit in response with Event (#61428) (#61522) 2020-08-25 17:32:42 +03:00
eql.asciidoc EQL: Replace SearchHit in response with Event (#61428) (#61522) 2020-08-25 17:32:42 +03:00
functions.asciidoc [DOCS] Remove collapsible sections in EQL fn docs (#61498) (#61499) 2020-08-24 14:41:27 -04:00
get-async-eql-search-api.asciidoc [DOCS] Refactor EQL docs (#60700) (#60745) 2020-08-05 11:25:18 -04:00
pipes.asciidoc [DOCS] Remove collapsible sections in EQL fn docs (#61498) (#61499) 2020-08-24 14:41:27 -04:00
syntax.asciidoc [DOCS] Refactor EQL docs (#60700) (#60745) 2020-08-05 11:25:18 -04:00