【问题标题】:DeletebyQuery replacement in NEST 2.0.4NEST 2.0.4 中的 DeletebyQuery 替换
【发布时间】:2016-05-05 13:03:01
【问题描述】:

我的早期版本的 NEST 曾经支持 DeleteByQuery 的以下代码

ESClient.DeleteByQuery<object>(q => q.Query(q1 => q1.QueryString(qs => qs.Query("*"))));

现在,NEST 弹性版本的 nugetPackage 已更改为 2.0.4,我无法使用现有代码工作。谁能告诉我什么可以代替它。我的 Elastic Search 是 1.5.1 版

谢谢 乳晕

【问题讨论】:

  • 2.x 版中的 NEST 与 ES 1.x 不兼容。
  • 谢谢罗伯的回答

标签: elasticsearch nest


【解决方案1】:

NEST 2.x 与 Elasticsearch 1.x 不兼容; Elasticsearch 方面存在重大变化,这些变化反映为 NEST 中的变化。 The NEST github repository shows the compatibility matrix,本质上是

  • NEST 1.x 与 Elasticsearch 1.x 兼容
  • NEST 2.x 与 Elasticsearch 2.x 兼容

在预发布版本中,NEST 5.0.0-alpha1 与 Elasticsearch 5.0.0-alpha1 兼容。

如果你使用的是Elasticsearch 2.x,建议use NEST 2.3.1, as it contains a fix for a memory leak that exists in prior NEST 2.x versions.

DeleteByQuery 在 2.x 和 is available as a plugin. 中不再是 Elasticsearch 核心的一部分@

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多