Having troubles deleting an entire type from elasticsearch.net
public void DeleteIndexedItemsbyType(string indexType)
{
ConnectionConfiguration config = new ConnectionConfiguration(new Uri(this.uri));
ConnectionConfiguration exposed = config.ExposeRawResponse(true);
ElasticsearchClient client = new ElasticsearchClient(config, null, null, null);
//Here's where I go wrong not sure what to put into the delete since i don't want a specific ID
var bulk = new object[]
{
{ "delete" : { "_index" : "test", "_type" : "type1", "_id" : "2" } }
}
client.Bulk(bulk);
}