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:
But I'm using the ElasticClient and I'm adding items like this:
I don't know how to set the Index here. I thought about some thing like
but I cant find a method like that.
How can I add the ID using the IElasticClient object?