mozilla / elasticutils

[deprecated] A friendly chainable ElasticSearch interface for python
http://elasticutils.rtfd.org
BSD 3-Clause "New" or "Revised" License
243 stars 76 forks source link

Supply a pagination class #198

Open robhudson opened 10 years ago

robhudson commented 10 years ago

In Marketplace we have a special paginator that looks at the total count returned in the ES response and use it for the Django paginator (vs doing 2 queries -- a count query then the real query). This might be a useful thing to include in elasticutils.

Update: Our pagination class is now here: https://github.com/mozilla/zamboni/blob/master/mkt/api/paginator.py

willkg commented 10 years ago

I like this idea, but I'm going to push it off until post 0.10.