-
Notifications
You must be signed in to change notification settings - Fork 733
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
Elastica\Client\updateDocument fails with ES 7.3 #1683
Comments
It seems the version parameter was deprecated in ES 7.0.0 related issue: elastic/elasticsearch#38254 |
I tested |
@lenada Did you figure out by chance where in the code this is coming from? |
@ruflin @thePanz thank you for your time! When I comment https://github.com/ruflin/Elastica/blob/master/lib/Elastica/Client.php#L365 no exception is thrown. |
Makes me wonder if we have a test case for updateDocument :-) |
I can confirm this on my end as well. I'm using Retrieving a document brings the 'version' parameter with it and saving the document back by running updateDocument produces the error. I can work around this by removing the 'version' parameter from the params array though not sure if it's a good idea. My Elasticsearch/Elastica knowledge is very superficial. |
Reproduced this on elaticsearch 7.9.1 and elatica dev-master. Everything else seems to work fine. Any chance it can be prioritized up? When uncommented 'version' in params in Client.php->updateDocument() it works. |
@consolari Any chance you could open a PR with this change against master? This should simplify the dicsussion and we will also see what tests this effects. |
Closed as it was fixed in #1803 |
When testing current master against Elasticsearch 7.3
->updateDocument()
throwsElasticsearch\Common\Exceptions\UnexpectedValueException
"version" is not a valid parameter. Allowed parameters are "_source", "_source_excludes", "_source_includes", "error_trace", "filter_path", "human", "if_primary_term", "if_seq_no", "lang", "opaqueId", "parent", "pretty", "refresh", "retry_on_conflict", "routing", "source", "timeout", "wait_for_active_shards"
After removing the
version
parameter it seems to update the document just fine.Apart from that issue; are there plans to tag a ES 7.3 compatible release anytime soon?
The text was updated successfully, but these errors were encountered: