Commit a2f6c76
committed
Fix script to use filtered document when document filters are active
Pass filteredJsonNode instead of jsonNode to scriptManager.buildScript
so that params.doc in the script reflects the post-filter document,
consistent with how builder.document() and builder.upsert() use the
filtered version.
Signed-off-by: Dinu John <86094133+dinujoh@users.noreply.github.com>1 parent d8bfbec commit a2f6c76
1 file changed
Lines changed: 1 addition & 1 deletion
File tree
- data-prepper-plugins/opensearch/src/main/java/org/opensearch/dataprepper/plugins/sink/opensearch
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
113 | 113 | | |
114 | 114 | | |
115 | 115 | | |
116 | | - | |
| 116 | + | |
117 | 117 | | |
118 | 118 | | |
119 | 119 | | |
| |||
0 commit comments