liberation / django-elasticsearch

Simple wrapper around elasticsearch-py to index/search a django Model.
MIT License
212 stars 73 forks source link

.deserialize() needs to return an unevaluated EsQueryset #14

Closed lauxley closed 9 years ago

lauxley commented 9 years ago

Because for now we can't do something like MyModel.es.all().deserialize()[5:15]. The idea would be that the .deserialize() method only sets a flag on the query, then on evaluation, the deserialize method would be call.