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

Updating all elasticsearch documents while scanning #1327

Open
golf-player opened this issue Mar 16, 2020 · 0 comments
Open

Updating all elasticsearch documents while scanning #1327

golf-player opened this issue Mar 16, 2020 · 0 comments

Comments

@golf-player
Copy link

Please correct me if I'm doing something dumb, but my intention is to make certain changes that involve transformations that can't be done by a script to every document in an index.

The problem is that hit is returned from scan, so I can't use the Document class' update method without making another call to elasticsearch to get the document.

I can use the elasticsearch-py update method, but was hoping there'd be a way to use the dsl functionality here. Maybe make scan return a document?

Version 6.4.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants