Delete a document from ElasticSearch index by id
I have a document in elastic search. I am trying to implement a method where I can specify a string id to delete a document from the index using NEST client. This is the indexed doc that I want to delete: "hits":[{"_index":"movies","_type":"list","_id":"100","_score":0.6349302, "_source" : { "owner": "Bob", "tags": "Bobita", "title": "Movie clips of Bob" }} This is my C# code which doesn't delete the doc. It says id is NULL. Uri localhost = new Uri("http://localhost:9200"); var setting = new ConnectionSettings(localhost); setting.SetDefaultIndex("movies"); var client = new ElasticClient