Is there a way of getting the total results without actually returning and counting the elements of the bucket array?
On Wednesday, 29 April 2015 13:49:57 UTC+2, ma...@elastic.co wrote: > > You could break the products into an arbitrary number of batches as > follows (in this case page 5 of 100): > > > { > "aggs":{ > "productsPage":{ > "terms":{ > > "script":"p=doc['product'].value;if(p.hashCode()%100==5)return p;return > null;" > } > } > } > } > > -- You received this message because you are subscribed to the Google Groups "elasticsearch" group. To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/e842a236-1b49-4db7-ac17-72dce7517771%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.