【发布时间】:2023-03-17 20:30:01
【问题描述】:
我已将我的代码移植到 NEST 2.0 和 Elasticsearch 2.0
我需要找到一种方法来更新已经存储到 ES2 中的文档
我使用的是partial object technique:
elastic.Update<myDocumentType, myPartialDocumentType>(u => u
.Index(myIndexName)
.Id(id)
.Doc(
new myPartialDocumentType()
{
// set the fields to update here
})
.Refresh());
如何使用 NEST2 做同样的事情?
【问题讨论】:
标签: c# .net asp.net-web-api elasticsearch nest