Re:Show HN: PyEQS – query Elasticsearch like a Django Queryset
by andrewgross on Monday May 19, 2014 @06:22PM
(#7770122)
Thanks for sharing. Nice to see an alternative approach for defining these sorts of things.
Re:Show HN: PyEQS – query Elasticsearch like a Django Queryset
by honzakral on Monday May 19, 2014 @06:27PM
(#7770141)
Happy to - note that the syntax in the search test is mostly just shortcut (though I fully expect that to be the main interface). You can also use the objects for individual query types:
https://github.com/elasticsearch/elasticsearch-dsl-py/blob/m...
It's currently work in progress but you can already see in tests some of the features like chainable API, composing queries and filters and aggregations:
https://github.com/elasticsearch/elasticsearch-dsl-py/blob/m...
I try to work closely with the fine people at Mozilla currently maintaining ElasticUtils to make sure there is a nice migration path and I don't miss anything obvious. Any feedback would be more than welcome (github, twitter, email, irc #elasticsearch-py, carrier pigeon, ...)!