
[discrete]
[[Elasticsearch_Namespaces_EqlNamespace]]
=== Elasticsearch\Namespaces\EqlNamespace



Class EqlNamespace
Generated running $ php util/GenerateEndpoints.php 7.9


*Methods*

The class defines the following methods:

* <<Elasticsearch_Namespaces_EqlNamespacedelete_delete,`delete()`>>
* <<Elasticsearch_Namespaces_EqlNamespaceget_get,`get()`>>
* <<Elasticsearch_Namespaces_EqlNamespacesearch_search,`search()`>>



[[Elasticsearch_Namespaces_EqlNamespacedelete_delete]]
.`delete()`
*NOTE:* This API is BETA and may change in ways that are not backwards compatible
****
[source,php]
----
/*
$params['id'] = (string) The async search ID
*/

$params = [
    // ...
];

$client = ClientBuilder::create()->build();
$response = $client->eql()->delete($params);
----
****



[[Elasticsearch_Namespaces_EqlNamespaceget_get]]
.`get()`
*NOTE:* This API is BETA and may change in ways that are not backwards compatible
****
[source,php]
----
/*
$params['id']                          = (string) The async search ID
$params['wait_for_completion_timeout'] = (time) Specify the time that the request should block waiting for the final response
$params['keep_alive']                  = (time) Update the time interval in which the results (partial or final) for this search will be available (Default = 5d)
*/

$params = [
    // ...
];

$client = ClientBuilder::create()->build();
$response = $client->eql()->get($params);
----
****



[[Elasticsearch_Namespaces_EqlNamespacesearch_search]]
.`search()`
*NOTE:* This API is BETA and may change in ways that are not backwards compatible
****
[source,php]
----
/*
$params['index']                       = (string) The name of the index to scope the operation
$params['wait_for_completion_timeout'] = (time) Specify the time that the request should block waiting for the final response
$params['keep_on_completion']          = (boolean) Control whether the response should be stored in the cluster if it completed within the provided [wait_for_completion] time (default: false) (Default = false)
$params['keep_alive']                  = (time) Update the time interval in which the results (partial or final) for this search will be available (Default = 5d)
$params['body']                        = (array) Eql request body. Use the `query` to limit the query scope. (Required)
*/

$params = [
    // ...
];

$client = ClientBuilder::create()->build();
$response = $client->eql()->search($params);
----
****


