无法将 lambda 表达式转换为类型 'Indices',因为它不是 elasticsearch 中的委托类型
Cannot convert lambda expression to type 'Indices' because it is not a delegate type in elasticsearch
我是 Elasticsearch 的初学者。在做一个示例应用程序时,它在 d.AllIndices()
中显示错误说
Cannot convert lambda expression to type 'Indices' because it is not a delegate type
代码:
ElasticClient c = new ElasticClient();
c.DeleteIndex(d => d.AllIndices(true));
你试过了吗:
var c = new ElasticClient();
c.DeleteIndex(new DeleteIndexRequest(Indices.AllIndices));
我是 Elasticsearch 的初学者。在做一个示例应用程序时,它在 d.AllIndices()
中显示错误说
Cannot convert lambda expression to type 'Indices' because it is not a delegate type
代码:
ElasticClient c = new ElasticClient();
c.DeleteIndex(d => d.AllIndices(true));
你试过了吗:
var c = new ElasticClient();
c.DeleteIndex(new DeleteIndexRequest(Indices.AllIndices));