gpt4 book ai didi

python-3.x - hits>total - 限制为 10000 条记录 - 增加限制

转载 作者:行者123 更新时间:2023-12-02 22:47:35 25 4
gpt4 key购买 nike

enter image description here

我的 API 请求看起来像这样...GET /my_index/_search?scroll=1m
除了获得搜索结果外,我还希望一次性获得总结果的数量。但是,在定位 hits>total>value 时,记录数从不显示超过 10000 的计数。因此,我必须单独触发计数 API。有什么方法可以在我的同一个 _search 查询中获得超过 10000 条记录?

最佳答案

只需将 "track_total_hits": true 添加到您的请求中。

(参见 Elasticsearch 引用: Track total hits )

关于python-3.x - hits>total - 限制为 10000 条记录 - 增加限制,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/60467814/

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