【发布时间】:2021-02-10 00:01:35
【问题描述】:
我正在尝试使用 C# NEST 库将 json 字符串文件索引到 Elastic Search。我发现这个post 是相关的。但是.Index<string>有语法错误
var indexResponse = _elasticClient.LowLevel.Index<string>("index-name", "type-name", json);
错误是
类型“string”不能用作类型参数“TResponse” 泛型类型或方法 'IElasticLowLevelClient.Index(字符串,字符串,PostData, 索引请求参数)'。没有隐式引用转换 来自“字符串”
【问题讨论】: