[[reference-eql-search]] //////// =========================================================================================================================== || || || || || || || ██████╗ ███████╗ █████╗ ██████╗ ███╗ ███╗███████╗ || || ██╔══██╗██╔════╝██╔══██╗██╔══██╗████╗ ████║██╔════╝ || || ██████╔╝█████╗ ███████║██║ ██║██╔████╔██║█████╗ || || ██╔══██╗██╔══╝ ██╔══██║██║ ██║██║╚██╔╝██║██╔══╝ || || ██║ ██║███████╗██║ ██║██████╔╝██║ ╚═╝ ██║███████╗ || || ╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝╚═════╝ ╚═╝ ╚═╝╚══════╝ || || || || || || This file is autogenerated, DO NOT send pull requests that changes this file directly. || || You should update the script that does the generation, which can be found in: || || https://github.com/elastic/elastic-client-generator-js || || || || You can run the script with the following command: || || npm run elasticsearch -- --version || || || || || || || =========================================================================================================================== //////// [discrete] [[client.eql.search]] === client.eql.search Returns results matching a query expressed in Event Query Language (EQL) {ref}/eql-search-api.html[{es} documentation] [discrete] ==== Function signature [source,ts] ---- (EqlSearchRequest, options?): Promise ---- [discrete] ==== Request [pass] ++++
++++
interface EqlSearchRequest extends <> {
  index: <>
  allow_no_indices?: boolean
  expand_wildcards?: <>
  ignore_unavailable?: boolean
  query: string
  case_sensitive?: boolean
  event_category_field?: <>
  tiebreaker_field?: <>
  timestamp_field?: <>
  fetch_size?: <>
  filter?: <> | <>[]
  keep_alive?: <>
  keep_on_completion?: boolean
  wait_for_completion_timeout?: <>
  size?: <>
  fields?: <> | <> | (<> | <>)[]
  result_position?: EqlSearchResultPosition
  runtime_mappings?: <>
}

[pass]
++++
++++ [discrete] ==== Response [pass] ++++
++++
type EqlSearchResponse = <>

[pass]
++++
++++