Skip to content

Conversation

ezimuel
Copy link
Contributor

@ezimuel ezimuel commented Jun 12, 2019

This PR contains the code refactor (with type hints + some minor internal changes) and the endpoints update for ES 7.0.0. Moreover, it requires PHP 7.1 as minimum version in composer.json.

@ezimuel ezimuel added this to the 7.0.0 milestone Jun 12, 2019
@ezimuel ezimuel merged commit b81cdda into elastic:master Jun 12, 2019
@ezimuel
Copy link
Contributor Author

ezimuel commented Jun 12, 2019

This PR has been tested in ezimuel/feature/7.0.0 branch. See comments here.


$this->body['scroll_id'] = $scroll_id;
if (isset($scrollId)) {
return "/_search/scroll/$scrollId";
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can't seem to find where this is documented for es 7.x. Tried the 7.0 release version with es 7.2 but the scrollId is not picked up by elasticsearch.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The API specification for scroll endpoint, using ES 7.0.0, is reported here. If you are using ES 7.2 the /_search/scroll/$scrollId has been deprecated, see here.
I'll release elasticsearch-php 7.1 soon and I need to manage some deprecated paths for ES 7.2, that will be released soon (current master of elastic/elasticsearch).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants