-
Notifications
You must be signed in to change notification settings - Fork 974
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
Scroll search with long scroll_id #1044
Comments
@c-leroy thanks for reporting this. The @trigger_error() reported in function myErrorHandler($errno, $errstr, $errfile, $errline)
{
switch ($errno) {
case E_USER_DEPRECATED:
printf("PHP Deprecated: %s in %s on line %d", $errstr, $errfile, $errline);
break;
}
return true;
}
$oldErrorHandler = set_error_handler("myErrorHandler");
@trigger_error('This is a deprecated message', E_USER_DEPRECATED); I'll update the documentation using |
Solved in #1052. |
Reference documentation from https://www.elastic.co/guide/en/elasticsearch/client/php-api/current/search_operations.html tells us to use scroll_id parameter in scroll() parameters. This leads to a Elasticsearch error in case scroll_id is too large, since - in this case - it is sent in request URI, which overcomes elasticsearch limits.
Example from https://www.elastic.co/guide/en/elasticsearch/client/php-api/current/search_operations.html is :
After viewing src/Elasticsearch/Endpoints/Scroll.php, we can see that :
Correct form of scroll() with current version to avoid URI overflow :
The same goes for deletion, the only way to delete a large scroll_id is :
We are using elasticsearch-php 7.4.1
Regards
The text was updated successfully, but these errors were encountered: