How to upsert an initial value into elasticsearch using spark?

The id doesn't exist where? In Elasticsearch or it the data you are reading?