You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What I'm trying to accomplish here is to get back the modified document with the bulk updates.
With curl, I can do the following: curl -s -H "Content-Type: application/x-ndjson" -XPOST 'localhost:9200/_bulk?pretty&_source=true' --data-binary "@requests"
So I think the question is: how to specify query parameters with the helpers.bulk API? As it can be seen from the doc and the above curl call, elasticsearch itself supports this.
Steps to reproduce:
Execute the above code on a 7.x elasticsearch.
The text was updated successfully, but these errors were encountered:
Elasticsearch version (
bin/elasticsearch --version
): 7.7.0elasticsearch-py
version (elasticsearch.__versionstr__
): 7.5.1Description of the problem including expected versus actual behavior:
With previous elasticsearch version, this code snippet has worked:
But after upgrading elasticsearch to 7.x, this fails with:
What I'm trying to accomplish here is to get back the modified document with the bulk updates.
With
curl
, I can do the following:curl -s -H "Content-Type: application/x-ndjson" -XPOST 'localhost:9200/_bulk?pretty&_source=true' --data-binary "@requests"
So I think the question is: how to specify query parameters with the
helpers.bulk
API? As it can be seen from the doc and the abovecurl
call, elasticsearch itself supports this.Steps to reproduce:
Execute the above code on a 7.x elasticsearch.
The text was updated successfully, but these errors were encountered: