全文搜索:Whoosh VS SOLR [英] Full text search: Whoosh Vs SOLR

查看:110
本文介绍了全文搜索:Whoosh VS SOLR的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在一个Django项目,我需要实现全文搜索。我看过SOLR并发现了一些很好的评论。但是由于它在Java中实现,并且需要java环境与Python一起安装在系统上。寻找与SOLR相当的python,我已经看过Whoosh,但我不知道Whoosh是否像SOLR那样高效而强大。或者我应该使用SOLR选项,还是有比Whoosh和SOLR更好的选择?python?



请建议。



提前感谢

解决方案

Whoosh实际上是一个非常快的python-only实现。也就是说,它至少还要慢一个数量级。根据您需要索引和搜索的数据量以及对最大允许延迟和并发搜索的要求,可能不是一个选项。



SOLR有点一个复杂的野兽,但它是迄今为止最全面的搜索解决方案。将其与 solrpy 混合使用,以获得令人惊叹的结果。是的,你需要java主机。



你可能还想查看 xapian的python绑定。 Xapian非常快,但比SOLR更少的完整解决方案。他们是GPL许可,所以可能/可能不会对你有效。


I am working on a Django project, where I need to implement full text search. I have seen SOLR and found some good comments for the same. But as its implemented in Java and would need java enviroment to be installed on the system along with Python. Looking for the python equivalent for SOLR, I have seen Whoosh but I am not sure whether Whoosh is as efficient and strong as SOLR. Or shall I go with SOLR option only or are there any better options than Whoosh and SOLR with python?

Please suggest.

Thanks in advance

解决方案

Whoosh is actually very fast for a python-only implementation. That said, it's still at least an order of magnitude slower. Depending on the amount of data you need to index and search and the requirements on the maximum allowable latency and concurrent searches, it may not be an option.

SOLR is a bit of a complicated beast, but it's by far the most comprehensive search solution. Mix it with solrpy for stunning results. Yes, you will need java hosting.

You might also want to check out the python bindings for xapian. Xapian is very very fast, but less of a complete solution than SOLR. They are GPL licensed though, so that may/may not be viable for you.

这篇关于全文搜索:Whoosh VS SOLR的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆