Live data from Hacker News

Show HN: PyEQS – query Elasticsearch like a Django Queryset

github.com

11–20 of 26 posts

Re: Show HN: PyEQS – query Elasticsearch like a Django Queryset

#14

We are currently working on an official QuerySet-like python library here at Elasticsearch: https://github.com/elasticsearch/elasticsearch-dsl-py

Yes, the goal is similar - to provide a nice API without limiting any of the possibilities. It's much less restrictive (doesn't whitelist parameters) and tries not to force you to learn both Elasticsearch's query language and a DSL on top of by staying close to the original api.

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, ...)!

Re: Show HN: PyEQS – query Elasticsearch like a Django Queryset

#15
Hi Yipit folks! It's Alec, from the Seattle Django group. We also developed something like this internally at Nimia due to the exact same use case: needing to access certain types of queries that didn't fit for haystack. Looks like we should have open sourced it so we could have collaborated.

Re: Show HN: PyEQS – query Elasticsearch like a Django Queryset

#16

We are currently working on an official QuerySet-like python library here at Elasticsearch: https://github.com/elasticsearch/elasticsearch-dsl-py

Yes, the goal is similar - to provide a nice API without limiting any of the possibilities. It's much less restrictive (doesn't whitelist parameters) and tries not to force you to learn both Elasticsearch's query language and a DSL on top of by staying close to the original api. 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…

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

#17

Earlier quoted context omitted.

Yes, the goal is similar - to provide a nice API without limiting any of the possibilities. It's much less restrictive (doesn't whitelist parameters) and tries not to force you to learn both Elasticsearch's query language and a DSL on top of by staying close to the original api. 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…

Thanks for sharing. Nice to see an alternative approach for defining these sorts of things.

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...
Post reply on HN