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

Bug in bulk operations #31

Open
andryw opened this issue Jun 13, 2016 · 0 comments
Open

Bug in bulk operations #31

andryw opened this issue Jun 13, 2016 · 0 comments
Labels

Comments

@andryw
Copy link
Contributor

andryw commented Jun 13, 2016

The bulk helper from python elasticserach library receives "raise_on_error" and "chunk_size" parameters.
The bulk operations will be executed for "chunk_size" documents at time (default 500).
If raise_on_error is True, an exception is raised and the documents not processed at this point will not be processed.
This is problematic in delete_all operation of ESEngine.

If I send 501 documents to be deleted, which the first 500 documents aren't idenxed but the 501° is, an exception will be raised on the first "chunck" and the 501° will not be deleted.

I know that it's possible to pass kwargs on esengine. Perhaps this behavior could be more explicit.
What do you think?

@andryw andryw added the bug label Jun 13, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant