Skip to content

Add a way to get all results back. #55

Closed
rlr opened this Issue Aug 16, 2012 · 3 comments

3 participants

@rlr
Mozilla member
rlr commented Aug 16, 2012

Currently, there is no way to get all the results. You have to slice with a large enough number, which is kind of hacky.

@willkg
Mozilla member
willkg commented Aug 16, 2012

http://www.elasticsearch.org/guide/reference/api/search/from-size.html

That says:

Though can be set as request parameters, they can also be set within the search body. from defaults to 0, and
size defaults to 10.

which I think is what we're running into. Interestingly, I don't see obvious non-hacky way to get everything. We might not be able to do this without hitting ES twice: once for a count and once for the search results with the correct size.

@willkg
Mozilla member
willkg commented Mar 19, 2013

Fixed in ade1468

@willkg willkg closed this Mar 19, 2013
@kevinastone

Gah! This conflicts with django's queryset which allows you to run .all() on any queryset preserving any slicing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.