Skip to content

Commit 22871a5

Browse files
committed
Fixed Client conflict, removed suggest()
2 parents 8a089eb + f7ac462 commit 22871a5

File tree

2 files changed

+0
-116
lines changed

2 files changed

+0
-116
lines changed

src/Elasticsearch/Client.php

Lines changed: 0 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -819,35 +819,6 @@ public function reindex($params)
819819
return $this->performRequest($endpoint);
820820
}
821821

822-
/**
823-
* $params['index'] = (list) A comma-separated list of index names to restrict the operation; use `_all` or empty string to perform the operation on all indices
824-
* ['ignore_indices'] = (enum) When performed on multiple indices, allows to ignore `missing` ones
825-
* ['preference'] = (string) Specify the node or shard the operation should be performed on (default: random)
826-
* ['routing'] = (string) Specific routing value
827-
* ['source'] = (string) The URL-encoded request definition (instead of using request body)
828-
* ['body'] = (array) The request definition
829-
*
830-
* @param array $params Associative array of parameters
831-
*
832-
* @return array
833-
*/
834-
public function suggest($params = array())
835-
{
836-
$index = $this->extractArgument($params, 'index');
837-
$body = $this->extractArgument($params, 'body');
838-
839-
/** @var callable $endpointBuilder */
840-
$endpointBuilder = $this->endpoints;
841-
842-
/** @var \Elasticsearch\Endpoints\Suggest $endpoint */
843-
$endpoint = $endpointBuilder('Suggest');
844-
$endpoint->setIndex($index)
845-
->setBody($body);
846-
$endpoint->setParams($params);
847-
848-
return $this->performRequest($endpoint);
849-
}
850-
851822
/**
852823
* $params['id'] = (string) The document ID (Required)
853824
* ['index'] = (string) The name of the index (Required)

src/Elasticsearch/Endpoints/Suggest.php

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

0 commit comments

Comments
 (0)