-
-
Notifications
You must be signed in to change notification settings - Fork 6.9k
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
elasticsearch can not update active record that has a parent relation #5758
Comments
simple updates should not go through bulk api. |
same for delete, do not use bulk api. |
I'm experiencing the same problem. Thanks for sharing! |
related to: elastic/elasticsearch#8068 could be implemented automatically this way. |
reported this case to improve the error message: elastic/elasticsearch#8714 |
@mortenzeppelin should work now, you can pass custom options to the update() and delete() method: $comment->update(true, null, ['routing' => $task->id] |
Hi @cebe |
You mean sending |
To be honest it is been a while since I worked on this. And looking at my test script I see that I did not get bulk update to work, but it should be possible like this - which is equivalent to _routing.
("doc_as_upsert": True) added to only update parts of document. |
Okay, thanks. Will consider this when working on the interface for direct support of parent-child relations. |
output:
The text was updated successfully, but these errors were encountered: