gpt4 book ai didi

elasticsearch - Elasticsearch 匹配为N,但返回结果要少得多

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

我不确定是否在某处设置了默认限制,但是我的Elastic search hit条目告诉我有135个匹配,而我只得到了10个。

由于总是看起来最大为10,因此似乎肯定有某个默认设置吗?

[hits] => Array
(
[total] => 135
[max_score] => 1
[hits] => Array
(
[0] => Array ( /* document content */ )
/* and so on ... */
[9] => Array ( /* document content */ )
)
)

最佳答案

默认情况下,Elastic Search返回10匹配。您可以使用size进行更改

GET /index/type/_search?size=100

关于elasticsearch - Elasticsearch 匹配为N,但返回结果要少得多,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35337339/

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