elastic / elasticsearch-php

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

Fixed #1131 using old endpoint naming #1151

Closed ezimuel closed 3 years ago

ezimuel commented 3 years ago

This PR fixes #1131 using the old endpoint naming convention used in elasticsearch-php <= 6.7. In particular, it adds a check in the endpoint generator script (util/GenerateEndpoints.php) to use this naming conversion:

const BC_CLASS_NAME = [
    'Cat\Nodeattrs'      => 'NodeAttrs',
    'Indices\Forcemerge' => 'ForceMerge',
    'Mtermvectors'       => 'MTermVectors',
    'Termvectors'        => 'TermVectors'
];
kbond commented 3 years ago

@ezimuel this solves #1131 for me!

ezimuel commented 3 years ago

Thanks @kbond