We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When 400 error occurred, the client may throw AlreadyExpiredException event if the error is NOT AlreadyExpiredException surely.
This is an example.
$param = [ 'index' => 'test', 'body' => [ "query" => [ 'query_string' => [ 'fields' => ['field1'], 'query' => 'AlreadyExpiredException NOT' ] ] ] ]; $result = $client->search($param);
Because the query includes "AlreadyExpiredException", the error is regarded as AlreadyExpiredException. It should be parse_exception.
This code has the problem. https://github.com/elastic/elasticsearch-php/blob/v6.1.0/src/Elasticsearch/Connections/Connection.php#L602
ScriptLangNotSupportedException also has same issue.
The text was updated successfully, but these errors were encountered:
Further more, the AlreadyExpiredException seems be removed since Elasticsearch 6.0.0. elastic/elasticsearch#24857
It is better to remove the if statement from elasticsearch-php also.
Sorry, something went wrong.
Merge pull request #954 from oogFranz/removeAlreadyExpiredException
7f71332
#875 Remove AlreadyExpiredException
Successfully merging a pull request may close this issue.
Summary of problem or feature request
When 400 error occurred, the client may throw AlreadyExpiredException event if the error is NOT AlreadyExpiredException surely.
Code snippet of problem
This is an example.
Because the query includes "AlreadyExpiredException", the error is regarded as AlreadyExpiredException. It should be parse_exception.
This code has the problem.
https://github.com/elastic/elasticsearch-php/blob/v6.1.0/src/Elasticsearch/Connections/Connection.php#L602
ScriptLangNotSupportedException also has same issue.
System details
Linux
7.3.4
6.1.0
7.0.0
The text was updated successfully, but these errors were encountered: