To avoid duplicates I like to give a document ID to each data set into Elastic.
As described at the documentation I like to set a ID while adding a item to Elastic. The description recommend to set the ID like this:
PUT /{index}/{type}/{id}
But I'm using the ElasticClient and I'm adding items like this:
ElasticClient.IndexDocumentAsync(doc);
I don't know how to set the Index here. I thought about some thing like
ElasticClient.SetId(id);
but I cant find a method like that.
How can I add the ID using the IElasticClient object?