TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Show HN: PyEQS – query Elasticsearch like a Django Queryset

55 pointsby andrewgrossalmost 11 years ago

10 comments

spenceraalmost 11 years ago
We are currently working on an official QuerySet-like python library here at Elasticsearch:<p><a href="https://github.com/elasticsearch/elasticsearch-dsl-py" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;elasticsearch&#x2F;elasticsearch-dsl-py</a>
评论 #7770076 未加载
kevinastonealmost 11 years ago
Take a look at ElasticUtils from Mozilla. It also provides a queryset-inspired interface for elasticsearch.<p><a href="http://elasticutils.readthedocs.org/" rel="nofollow">http:&#x2F;&#x2F;elasticutils.readthedocs.org&#x2F;</a>
评论 #7769810 未加载
akoumjianalmost 11 years ago
Hi Yipit folks! It&#x27;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&#x27;t fit for haystack. Looks like we should have open sourced it so we could have collaborated.
coolsunglassesalmost 11 years ago
If you&#x27;d like something that tackles the challenge of making the Elasticsearch JSON API explicit:<p><a href="http://github.com/bitemyapp/bloodhound/" rel="nofollow">http:&#x2F;&#x2F;github.com&#x2F;bitemyapp&#x2F;bloodhound&#x2F;</a><p>(Intended to act as a guide as well as a practical ES client)
评论 #7769709 未加载
zmsmithalmost 11 years ago
I work with Andrew at Yipit. As he mentioned in a comment below, we&#x27;re using features of Elasticsearch that aren&#x27;t (and probably shouldn&#x27;t be) exposed by haystack, and some of the query building started to get a little messy.<p>I&#x27;m excited Andrew decided to work on this during our last hackathon and that now we&#x27;re able to share it with the community.<p>We&#x27;ve been really happy with Elasticsearch. Hopefully this library will help more people leverage Elasticsearch in their python projects.
jaegerpickeralmost 11 years ago
I&#x27;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.
评论 #7769605 未加载
sjaaktrekhaakalmost 11 years ago
Is the precommit hook[1] a custom one or is it an off-the-shelf Django recommended hook? Looks like it has some neat tricks and code style checking.<p>[1]: <a href="https://github.com/Yipit/pyeqs/blob/master/pre-commit" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;Yipit&#x2F;pyeqs&#x2F;blob&#x2F;master&#x2F;pre-commit</a>
评论 #7772579 未加载
lqdc13almost 11 years ago
bad coding style in some places (e.g.: <a href="https://github.com/Yipit/pyeqs/blob/master/pyeqs/dsl/range.py" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;Yipit&#x2F;pyeqs&#x2F;blob&#x2F;master&#x2F;pyeqs&#x2F;dsl&#x2F;range.p...</a> where he redefines python range)
评论 #7769824 未加载
jacquescalmost 11 years ago
I use Ruby and am massively jealous of this.<p>Anyone know of good Ruby alternatives?<p>thanks!
评论 #7771642 未加载
andrewstuartalmost 11 years ago
Python 2 only?
评论 #7770584 未加载