【问题标题】:What are the breaking changes migrating NEST from 1.7 to 2.0?将 NEST 从 1.7 迁移到 2.0 的重大变化是什么?
【发布时间】:2016-01-27 17:43:10
【问题描述】:

DateFormatFormat 的这种更改是否正确?

[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;

【问题讨论】:

    标签: c# nest elasticsearch-2.0


    【解决方案1】:

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

    Releases pages

    Breaking Changes page for NEST

    【讨论】:

      猜你喜欢
      • 2016-05-31
      • 1970-01-01
      • 2014-04-12
      • 1970-01-01
      • 1970-01-01
      • 2020-09-29
      • 2011-09-23
      • 2014-11-26
      • 1970-01-01
      相关资源
      最近更新 更多