gpt4 book ai didi

python - 在Elasticsearch Python客户端中找不到索引的优化功能

转载 作者:行者123 更新时间:2023-12-03 01:27:34 25 4
gpt4 key购买 nike

我正在使用elasticsearch python客户端6.4.0
我想使用优化API
https://www.elastic.co/guide/en/elasticsearch/reference/1.7/indices-optimize.html

但是我在elasticsearch python api doc中找不到关于它的任何信息
https://elasticsearch-py.readthedocs.io/en/master/api.html

我尝试使用es.indices.optimize(...),但该功能不存在。

我将更喜欢使用python客户端而不是直接API调用。

最佳答案

您正在查看的是Elastic(1.7)的非常旧的版本。 Optimize API已重命名为forcemerge,并以此名称在python客户端(docs)中可用

关于python - 在Elasticsearch Python客户端中找不到索引的优化功能,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/57697935/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com