Pass Entire Document into Update Script Params

According to Update settings (when writing to Elasticsearch), I can provide a list of fields to be passed into my update script params with es.update.script.params. Is there a way to say I want the entire document being indexed to be passed in? Essentially all fields without explicitly listing each one?

I realize I could just wrap the whole document in a single dummy field and list that in params but I'm performing upserts and don't want that dummy wrapper in the document if it does an insert.

I'm using es.input.json = true

Hmm, this is an interesting use case. I've never really thought of that before. Worth opening an enhancement issue on the github project.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.