I am working on elastic search. I have to show report data but I need to
group by them. Since I have large amount of data so I can not paginate
client side. Can anyone explain how we can do pagination while using
aggregation.
On Monday, July 28, 2014 8:13:51 AM UTC-5, Manoj Singh wrote:
I am working on Elasticsearch. I have to show report data but I need to
group by them. Since I have large amount of data so I can not paginate
client side. Can anyone explain how we can do pagination while using
aggregation.
Aggregations don't support pagination. This is something that would need to
be handled on the client side. For example, if you display the first page
using a terms aggregations of size 100 and shard_size 1000 and the user
wants to see the second page, you would need to run the query again with
size=200, shard_size=1000 and ignore the top 100 terms.
It is a good idea to keep the shard_size constant across pages so that the
accuracy issues[1] of the terms aggregation remain the same.
On Monday, July 28, 2014 8:13:51 AM UTC-5, Manoj Singh wrote:
I am working on Elasticsearch. I have to show report data but I need to
group by them. Since I have large amount of data so I can not paginate
client side. Can anyone explain how we can do pagination while using
aggregation.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.