How to use Spark API to update and insert data in ES

There is a issue:
there are 4 fields named id,a,b,c
if the id is same,i just want to use the latest data to update the value of a,and b,c not handle,
if the id is different,adding the record in ES

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