Update multiple field values in elasticsearch

Hi all,

I am looking to update just one field value in document,


	 "script" : "ctx._source.Surname = 'ag'"

this does the job for updating one field, but how to replace multiple fields , using update api.


Would that work?

ctx._source.Surname = 'ag'; ctx._source.Lastname = 'ag'

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