How to add pagination in elastic search

I'm new to Elastic Search,

R & D execution in version: 1.2.2 and 1.3.2

both produce the same set of results for my millions of records.

My question is that I am aggregating a term in a query to create a result. In my requirement, I need to break the records into numbers from 0 to 10 and from 10 to 11.

Any suggestions on this? How can i do this.

And also I can not find the difference between version 1.2.2 and 1.3.2, any reference document may be more useful.

+7
elasticsearch
source share
1 answer

Just try size and from when prompted

https://www.elastic.co/guide/en/elasticsearch/guide/1.x/pagination.html

 { "from":0, "size":50 } 
0
source share

All Articles