[ES] ES NEST删除

//delete one by id

updateClient.Delete<Person>(d => d.Id(7));

//delete one by object

 updateClient.Delete<Person>(new Person() { });

//delete the Indices

 updateClient.DeleteIndex(new DeleteIndexRequest(new IndexNameMarker() { Name = "zhixiao-application", Type = typeof(Person) }));



posted @ 2015-11-24 22:43  游子善心  阅读(6)  评论(0)    收藏  举报  来源