I am using client 8.0.8 Elastic.Clients.Elasticsearch to create index, add a record and update the existing record to the index.
What is the appropriate method to add and update the index.
Here is the code snippet I used to add and update, but the below snippet always add a record.
var response = elasticsearchClient.BulkAll(overpaymentSearchData,
b => b.Index(ConfigIndexKeys.OverpaymentIndex)
.BackOffTime("30s")
.BackOffRetries(3)
.RefreshOnCompleted()
.MaxDegreeOfParallelism(10)
.Size(500))
.Wait(TimeSpan.FromMinutes(5), next =>
{ }
);