-
Notifications
You must be signed in to change notification settings - Fork 2k
Using script upsert with _bulk API won't triggered #2607
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
Comments
This would be a good problem to turn into a unit test, adding good first issue. |
Hope to fix the problem soon. |
@anasalkouz You can use
So I think this is not an issue needed to be resolved. @dblock |
Is this expected? A documentation issue? A feature request? @qracle @rockybean WDYT? |
Sorry for above reply. I misunderstood the script. Both Will dive deeper. |
Did you ever figure out a resolution for this? |
[Search Triage] @rockybean Were you able to further investigate? |
I think this has to do with the order of executing the script versus the pipeline. Note that single-doc indexing operations (i.e. a single-doc index request, single-doc delete, or single-doc update) all eventually get converted to An update request flows as follows:
So, for the document-level As is, it looks like @gaobinlong decided to resolve this by going the other way by deprecating the We could make things more consistent (and delete some code) by making |
I'm going to close this as "won't fix", based on my comment above. We will potentially reconcile the behavior in OpenSearch 3.0 as described in #16980, but that would make things work according to the |
Is your feature request related to a problem? Please describe.
using script upsert with _bulk API will not triggered pipeline. But if use _doc API will triggered pipeline.
Steps to reproduce
A clear and concise description of what you want to happen.
As the document not exist yet, will upsert "data":9,"flag":"1" and triggered ingest pipeline:
The text was updated successfully, but these errors were encountered: