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

Add support for Elasticsearch.update #87

Open
sillly-milly opened this issue Apr 4, 2023 · 0 comments
Open

Add support for Elasticsearch.update #87

sillly-milly opened this issue Apr 4, 2023 · 0 comments

Comments

@sillly-milly
Copy link

From what I can tell, https://elasticsearch-py.readthedocs.io/en/7.x/api.html#elasticsearch.Elasticsearch.update is not supported by the mocking client (I think when I try to call the function on the mock then it's falling through to the super impl which tries to contact a server and of course there is no server so I get ConnectionRefusedError).

In my project I've decided to instead just use .index(id=...) to update documents, but I imagine the real client does some smarter, more efficient stuff via .update with more bells and whistles which I'm missing out on, so would be nice to support this!

By the way, loving the tool, it's made writing my tests so much easier!

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

1 participant