How do we delete only nested objects and not the index in elastic search using Nest library.
public class Make
{
public string MakeId {get;set;}
public string MakeName {get;set;}
public string Address { get;set;}
[ElasticProperty(Type = FieldType.Nested)]
public List<Cars> Models {get;set;}
}
In the above mapping i want to delete one entry of Models without deleting whole index.
I tried deleting using DeleteByQuery but it deletes the entire Make index.