Setting Elastic search limit to “unlimited”

后端 未结 4 1627
执笔经年
执笔经年 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:45

    You can use the from and size parameters to page through all your data. This could be very slow depending on your data and how much is in the index.

    http://www.elastic.co/guide/en/elasticsearch/reference/current/search-request-from-size.html

提交回复
热议问题