Setting Elastic search limit to “unlimited”

后端 未结 4 1621
执笔经年
执笔经年 2020-12-08 04:02

How can i get all the results from elastic search as the results only display limit to 10 only. ihave got a query like:

@data = Athlete.search :load => tr         


        
4条回答
  •  暖寄归人
    2020-12-08 04:48

    use the scan method e.g.

     curl -XGET 'localhost:9200/_search?search_type=scan&scroll=10m&size=50' -d '
     {
        "query" : {
           "match_all" : {}
         }
     }
    

    see here

提交回复
热议问题