DEV Community

Ali Bayat
Ali Bayat

Posted on

Answer: How do I update an existing document inside ElasticSearch index using NEST?

A better solution in Nest 7.x:

await _client.UpdateAsync<ElasticSearchDoc>(doc.Id, u => u
  .Index("movies")
  .Doc(new ElasticSearchDoc { Title = "Updated title!" }));

Top comments (0)