我已将我的代码移植到NEST 2.0和Elasticsearch 2.0
我需要找到一种方法来更新已存储到ES2中的文档
我正在使用部分对象技术:
elastic.Update<myDocumentType, myPartialDocumentType>(u => u
.Index(myIndexName)
.Id(id)
.Doc(
new myPartialDocumentType()
{
// set the fields to update here
})
.Refresh());
Run Code Online (Sandbox Code Playgroud)
如何使用NEST2做同样的事情?