Retrieve all matched results


(Richard Livsey) #1

Is it possible to retrieve all matched results, or do all queries need a size?

I could set size to something fairly large, I can fairly safely assume
that I don't want to display more than 1000 results to the user for
example, but wondering if there's a nicer way of doing it.

Cheers.

--
Richard Livsey
Minutebase - Online Meeting Minutes
http://minutebase.com
http://livsey.org


(Shay Banon) #2

You can scroll the results using the search scroll API. Though be careful
not to heavily use it (i.e. don't use scrolling to provide pagination for
your users) as its taxing on the server.

-shay.banon

On Fri, Aug 27, 2010 at 7:45 PM, Richard Livsey livsey@gmail.com wrote:

Is it possible to retrieve all matched results, or do all queries need a
size?

I could set size to something fairly large, I can fairly safely assume
that I don't want to display more than 1000 results to the user for
example, but wondering if there's a nicer way of doing it.

Cheers.

--
Richard Livsey
Minutebase - Online Meeting Minutes
http://minutebase.com
http://livsey.org


(system) #3