Live data from Hacker News

Show HN: PyEQS – query Elasticsearch like a Django Queryset

github.com

1–10 of 26 posts

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

#3

I'll have to play with it, currently we use the SearchQuerySet api provided by django_haystack to query Elasticsearch and it works pretty well for us.

We used to use Haystack, but found it a bit too opinionated for us once we wanted to do some custom stuff. It is a bit more faithful to the Django queryset API, something we had to abandon to let us use more of the complex Elasticsearch query features.

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

#5

If you'd like something that tackles the challenge of making the Elasticsearch JSON API explicit: http://github.com/bitemyapp/bloodhound/ (Intended to act as a guide as well as a practical ES client)

Thanks for sharing this, didn't know about it. Always nice to see how other people tackle the same issue.

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

#6

If you'd like something that tackles the challenge of making the Elasticsearch JSON API explicit: http://github.com/bitemyapp/bloodhound/ (Intended to act as a guide as well as a practical ES client)

Thanks for sharing this, didn't know about it. Always nice to see how other people tackle the same issue.

Putting together and composing queries in ES is error prone and I have grown quite allergic to libraries that just write off the query/filter API ES provides as "json blob lol lol".

You can lose massive amounts of time debugging a broken query in ES, due in no small part to a lack of an explicit spec.

To respond to the mis-aimed comment:

It's not about just beginning learning - it's a problem the moment you want to properly compose queries and not just have dumb templates.

I am not new to ES, I've been using it for years.

I understand wanting directness and the full breadth of the Elasticsearch API (thus moving away from Haystack), but not actually supporting anything in the API (which is the actual hard work, not wrapping an http-client) is problematic.

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

#7

If you'd like something that tackles the challenge of making the Elasticsearch JSON API explicit: http://github.com/bitemyapp/bloodhound/ (Intended to act as a guide as well as a practical ES client)

Thanks for sharing this, didn't know about it. Always nice to see how other people tackle the same issue.

Agreed. I had a rough time when I was first learning how to manually build queries as there are few examples of complex queries.

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

#9
I work with Andrew at Yipit. As he mentioned in a comment below, we're using features of Elasticsearch that aren't (and probably shouldn't be) exposed by haystack, and some of the query building started to get a little messy.

I'm excited Andrew decided to work on this during our last hackathon and that now we're able to share it with the community.

We've been really happy with Elasticsearch. Hopefully this library will help more people leverage Elasticsearch in their python projects.

Post reply on HN