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

标签 elasticsearch

我不确定是否在某处设置了默认限制,但是我的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/

相关文章:

elasticsearch - Elasticsearch自动完成无法正常工作

python - 在python中解析特殊的json

c# - Elasticsearch 中更新了文档ID

linux - 如何使用 ssh 在 Linux 主机服务器上安装 Elastic Search

lucene - Elasticsearch可以提出映射建议吗?

symfony - elasticbundle搜索索引

elasticsearch - 意外的 Geo_shape 查询行为

elasticsearch - Titan标准索引与Elastic Search索引

elasticsearch - 使用elasticsearch和logstash删除输入标签字段

elasticsearch - 将复合键数据保存到 Elasticsearch 文档