Solr: best documented, easy to use, stable Python APIs

混江龙づ霸主 提交于 2020-01-13 07:50:09

问题


I want to use Lucene Solr in Python. There seems to be multiple APIs for this purpose. They seem to suffer dependency hell and stability issues, and Solr doesnt ship with python bindings anymore. And I cant find any documentation for the user who is not familiar with Solr.

I am leaning on Sunburnt over pysolr and solrpy for being the most mature. Is my evaluation correct?

Please recommend stable python bindings for Solr with good standalone (does not presuppose Solr knowledge) documentation. Or should I learn how to interact with the "servlet" and make use of the existing documentation?


回答1:


Always know Solr independently of any client library like Sunburnt, pysolr, solrpy, etc. Just as you have to know relational databases before using any ORM. Moreover, no ORM documentation will teach you relational databases, and no one would expect it to do so.




回答2:


Haystack has an awesome API and supports the backends: Solr, Whoosh and Xapian.

I have successfully used Haystack several places, in development with Whoosh backend and in production using the Solr backend. it has been pretty smooth.




回答3:


I normally use mysolr in my projects: http://mysolr.redtuna.org/




回答4:


I ended up using sunburnt, which seems very feature-rich and reading a lot of their and Solr's documentation.



来源:https://stackoverflow.com/questions/6728944/solr-best-documented-easy-to-use-stable-python-apis

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!