How to add url parameters to elasticsearch UpdateByQuery in elasticsearch

Hello,

I have a nodejs app that calls ES's updateByQuery API like below:

elasticsearchClient.updateByQuery({
            index: 'logstash-dev-2019.05.14',
            body: {
                "query": {
                    "ids": {
                        "values": alert.esId
                    }
                },
                "script": {
                    "source": `ctx._source.alertObject.violation_status = 'closed'`,
                    "lang": "painless"
                }
            }
        });

However occasionally, I run into version_conflict_engine_exception . I want to proceed with the conflict by using conflict=proceed as mentioned in the documentation. Where do I fit this into my update call?

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