将 NEST 从 1.7 迁移到 2.0 有哪些重大变化?
What are the breaking changes migrating NEST from 1.7 to 2.0?
将 DateFormat
更改为 Format
是否正确?
[ElasticProperty(DocValues = true, DateFormat = "epoch_millis")]
->
[Nest.Date(DocValues = true, Format = "epoch_millis")]
文档路径现在是更新的必需参数。什么是文档路径,假设没有文档路径设置 updateSelector
?
,此更改是否等效
elasticWriteClient.Update<T>(updateSelector);
->
elasticWriteClient.Update<T>("", updateSelector);
正在更新单元测试,RequestInformation 和IElasticsearchResponse 都不见了。现在这里的范例是什么?
即这是一个测试初始化语句:
searchResponse.RequestInformation = new Mock<IElasticsearchResponse>().Object;
github 中的发布页面现在包含有关重大更改的所有文档:
将 DateFormat
更改为 Format
是否正确?
[ElasticProperty(DocValues = true, DateFormat = "epoch_millis")]
->
[Nest.Date(DocValues = true, Format = "epoch_millis")]
文档路径现在是更新的必需参数。什么是文档路径,假设没有文档路径设置 updateSelector
?
elasticWriteClient.Update<T>(updateSelector);
->
elasticWriteClient.Update<T>("", updateSelector);
正在更新单元测试,RequestInformation 和IElasticsearchResponse 都不见了。现在这里的范例是什么? 即这是一个测试初始化语句:
searchResponse.RequestInformation = new Mock<IElasticsearchResponse>().Object;
github 中的发布页面现在包含有关重大更改的所有文档: