【问题标题】:Pyes Elastic Search Refresh API IssuePyes 弹性搜索刷新 API 问题
【发布时间】:2023-03-18 07:30:02
【问题描述】:

我最近将 Elastic Search 从 v 1.7 升级到了 2.4。我正在使用 python 并使用 pyes 库与 Elastic Search 进行通信。在我的代码中,我有这行来刷新索引。

con.indices.refresh()

这在 ES 1.7 中运行良好,但是在 ES 2.4 中,我遇到了这个异常:

ElasticSearchException:未知异常类型:408

通过 curl 刷新效果很好,即

curl localhost:9200/_refresh

Elastic Search 2.4 中是否有任何更改会破坏这段代码?谢谢

【问题讨论】:

    标签: elasticsearch pyes


    【解决方案1】:

    您是否更新了 pyes 库的版本。 ES 和 pyes 之间存在版本兼容性。哪个是严格的。

    请参阅此处的文档。 http://pyelasticsearch.readthedocs.io/en/latest/migrate/

    【讨论】:

    • 感谢您的回答lazywiz。我已经在使用最新版本的 pyes。你提到的文档是迁移到pyelasticsearch,我猜这是一个单独的库。
    猜你喜欢
    • 1970-01-01
    • 2012-08-18
    • 2012-04-14
    • 1970-01-01
    • 2020-12-20
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多