Skip to content

Commit 4f0b9da

Browse files
committed
Indices/Optimize endpoint has been removed in 5.0
1 parent ef24d5d commit 4f0b9da

File tree

2 files changed

+0
-89
lines changed

2 files changed

+0
-89
lines changed

src/Elasticsearch/Endpoints/Indices/Optimize.php

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

src/Elasticsearch/Namespaces/IndicesNamespace.php

Lines changed: 0 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -711,38 +711,6 @@ public function create($params)
711711
return $endpoint->resultOrFuture($response);
712712
}
713713

714-
/**
715-
* $params['index'] = (list) A comma-separated list of index names; use `_all` or empty string to perform the operation on all indices
716-
* ['flush'] = (boolean) Specify whether the index should be flushed after performing the operation (default: true)
717-
* ['max_num_segments'] = (number) The number of segments the index should be merged into (default: dynamic)
718-
* ['only_expunge_deletes'] = (boolean) Specify whether the operation should only expunge deleted documents
719-
* ['operation_threading'] = () TODO: ?
720-
* ['refresh'] = (boolean) Specify whether the index should be refreshed after performing the operation (default: true)
721-
* ['wait_for_merge'] = (boolean) Specify whether the request should block until the merge process is finished (default: true)
722-
* ['ignore_unavailable'] = (bool) Whether specified concrete indices should be ignored when unavailable (missing or closed)
723-
* ['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)
724-
* ['expand_wildcards'] = (enum) Whether to expand wildcard expression to concrete indices that are open, closed or both.
725-
*
726-
* @param $params array Associative array of parameters
727-
*
728-
* @return array
729-
*/
730-
public function optimize($params = array())
731-
{
732-
$index = $this->extractArgument($params, 'index');
733-
734-
/** @var callback $endpointBuilder */
735-
$endpointBuilder = $this->endpoints;
736-
737-
/** @var \Elasticsearch\Endpoints\Indices\Optimize $endpoint */
738-
$endpoint = $endpointBuilder('Indices\Optimize');
739-
$endpoint->setIndex($index);
740-
$endpoint->setParams($params);
741-
$response = $endpoint->performRequest();
742-
743-
return $endpoint->resultOrFuture($response);
744-
}
745-
746714
/**
747715
* $params['index'] = (list) A comma-separated list of index names; use `_all` or empty string to perform the operation on all indices
748716
* ['flush'] = (boolean) Specify whether the index should be flushed after performing the operation (default: true)

0 commit comments

Comments
 (0)