将 NEST 从 1.7 迁移到 2.0 的重大更改是什么

本文关键字:是什么 NEST 迁移 | 更新日期: 2023-09-27 18:32:06

这种将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;

将 NEST 从 1.7 迁移到 2.0 的重大更改是什么

github 中的发布页面现在包含有关重大更改的所有文档:

发布页面

NEST 的"中断性变更"页