Skip to content

Commit

Permalink
[BWC Break] Remove DeleteByQuery endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
polyfractal committed Jul 6, 2016
1 parent cbe8619 commit 9f3776a
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 120 deletions.
33 changes: 0 additions & 33 deletions src/Elasticsearch/Client.php
Expand Up @@ -252,39 +252,6 @@ public function delete($params)
return $endpoint->resultOrFuture($response);
}

/**
*
* $params[''] @todo finish the rest of these params
* ['ignore_unavailable'] = (bool) Whether specified concrete indices should be ignored when unavailable (missing or closed)
* ['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)
* ['expand_wildcards'] = (enum) Whether to expand wildcard expression to concrete indices that are open, closed or both.
*
* @param array $params
*
* @return array
*/
public function deleteByQuery($params = array())
{
$index = $this->extractArgument($params, 'index');

$type = $this->extractArgument($params, 'type');

$body = $this->extractArgument($params, 'body');

/** @var callback $endpointBuilder */
$endpointBuilder = $this->endpoints;

/** @var \Elasticsearch\Endpoints\DeleteByQuery $endpoint */
$endpoint = $endpointBuilder('DeleteByQuery');
$endpoint->setIndex($index)
->setType($type)
->setBody($body);
$endpoint->setParams($params);
$response = $endpoint->performRequest();

return $endpoint->resultOrFuture($response);
}

/**
* $params['index'] = (list) A comma-separated list of indices to restrict the results
* ['type'] = (list) A comma-separated list of types to restrict the results
Expand Down
87 changes: 0 additions & 87 deletions src/Elasticsearch/Endpoints/DeleteByQuery.php

This file was deleted.

0 comments on commit 9f3776a

Please sign in to comment.