elastic / elasticsearch-php

Official PHP client for Elasticsearch.
https://www.elastic.co/guide/en/elasticsearch/client/php-api/current/index.html
MIT License
35 stars 970 forks source link

elasticsearch/elasticsearch 6.8.0 removes some classes, and doesn't leave aliases behind #1112

Closed reedy closed 3 years ago

reedy commented 3 years ago

Summary of problem or feature request

Downstream tasks: https://phabricator.wikimedia.org/T276854, https://phabricator.wikimedia.org/T276320 and https://github.com/ruflin/Elastica/issues/1908

Mentioned on https://github.com/elastic/elasticsearch-php/commit/2da5f9337a269113954a84fe8e79ea6843f0e7c3

In 6.8, at least Elasticsearch\Endpoints\Indices\Aliases\Update disappeared. Therefore trying to instantiate it fails: Error from line 451 of /var/www/html/w/extensions/Elastica/vendor/ruflin/elastica/lib/Elastica/Index.php: Class 'Elasticsearch\Endpoints\Indices\Aliases\Update' not found

There is seemingly supposed to be an alias left behind, but that doesn't seem to have happened. Other classes seemingly disappeared too, without aliases being left.

Code snippet of problem

https://github.com/ruflin/Elastica/blob/6.x/lib/Elastica/Index.php#L451

use Elasticsearch\Endpoints\Indices\Aliases\Update;

$endpoint = new Update();

System details

ezimuel commented 3 years ago

Just released 6.8.1 that fixes the issue.