Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Search iterators are broken #1145

Closed
bakurin opened this issue May 20, 2021 · 2 comments
Closed

Search iterators are broken #1145

bakurin opened this issue May 20, 2021 · 2 comments
Milestone

Comments

@bakurin
Copy link

bakurin commented May 20, 2021

Search iterators are broken

It seems that after #1044 SearchResponseIterator is broken: a deprecation error is thrown on an attempt to iterate the search result.

Code snippet of problem

$res = new SearchHitIterator(new SearchResponseIterator($client, $params));
foreach ($res as $hit) {
    //
}

System details

  • Operating System: Alpine Linux
  • PHP Version: 8.0
  • ES-PHP client version: 7.12
  • Elasticsearch version: 7.4

There is my PR #1134 with the suggested fix

@ezimuel
Copy link
Contributor

ezimuel commented Jun 28, 2021

@bakurin thanks for opening this issue and for the PR #1134. I just reviewed it.

@ezimuel ezimuel added this to the 7.14.0 milestone Jun 28, 2021
@ezimuel
Copy link
Contributor

ezimuel commented Jun 29, 2021

Merged in #1134

@ezimuel ezimuel closed this as completed Jun 29, 2021
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

No branches or pull requests

2 participants