Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Add a way to get all results back. #55

Closed
rlr opened this Issue · 3 comments

3 participants

@rlr
Owner

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
Owner

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
Owner

Fixed in ade1468

@willkg willkg closed this
@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.