Skip to content

Commit 9f3776a

Browse files
committed
[BWC Break] Remove DeleteByQuery endpoint
1 parent cbe8619 commit 9f3776a

File tree

2 files changed

+0
-120
lines changed

2 files changed

+0
-120
lines changed

src/Elasticsearch/Client.php

Lines changed: 0 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -252,39 +252,6 @@ public function delete($params)
252252
return $endpoint->resultOrFuture($response);
253253
}
254254

255-
/**
256-
*
257-
* $params[''] @todo finish the rest of these params
258-
* ['ignore_unavailable'] = (bool) Whether specified concrete indices should be ignored when unavailable (missing or closed)
259-
* ['allow_no_indices'] = (bool) Whether to ignore if a wildcard indices expression resolves into no concrete indices. (This includes `_all` string or when no indices have been specified)
260-
* ['expand_wildcards'] = (enum) Whether to expand wildcard expression to concrete indices that are open, closed or both.
261-
*
262-
* @param array $params
263-
*
264-
* @return array
265-
*/
266-
public function deleteByQuery($params = array())
267-
{
268-
$index = $this->extractArgument($params, 'index');
269-
270-
$type = $this->extractArgument($params, 'type');
271-
272-
$body = $this->extractArgument($params, 'body');
273-
274-
/** @var callback $endpointBuilder */
275-
$endpointBuilder = $this->endpoints;
276-
277-
/** @var \Elasticsearch\Endpoints\DeleteByQuery $endpoint */
278-
$endpoint = $endpointBuilder('DeleteByQuery');
279-
$endpoint->setIndex($index)
280-
->setType($type)
281-
->setBody($body);
282-
$endpoint->setParams($params);
283-
$response = $endpoint->performRequest();
284-
285-
return $endpoint->resultOrFuture($response);
286-
}
287-
288255
/**
289256
* $params['index'] = (list) A comma-separated list of indices to restrict the results
290257
* ['type'] = (list) A comma-separated list of types to restrict the results

src/Elasticsearch/Endpoints/DeleteByQuery.php

Lines changed: 0 additions & 87 deletions
This file was deleted.

0 commit comments

Comments
 (0)