Is there a pure Python Lucene?

2019-03-08 07:27发布

The ruby folks have Ferret. Someone know of any similar initiative for Python? We're using PyLucene at current, but I'd like to investigate moving to pure Python searching.

8条回答
Root(大扎)
2楼-- · 2019-03-08 07:44

For some applications pure Python is overrated. Take a look at Xapian.

查看更多
Root(大扎)
3楼-- · 2019-03-08 07:45

The only one pure-python (not involving even C extension) search solution I know of is Nucular. It's slow (much slower than PyLucene) and unstable yet.

We moved from PyLucene-based home baked search and indexing to Solr but YMMV.

查看更多
Explosion°爆炸
4楼-- · 2019-03-08 07:46

After weeks of searching for this, I found a nice Python solution: repoze.catalog. It's not strictly Python-only because it uses ZODB for storage, but it seems a better dependency to me than something like SOLR.

查看更多
一夜七次
5楼-- · 2019-03-08 07:47

Whoosh is a new project which is similar to lucene, but is pure python.

查看更多
别忘想泡老子
6楼-- · 2019-03-08 07:52

For non-pure Python, Sphinx Search with Python API works the fastest. From the benchmarks from multiple blogs, Sphinx Search is way faster than Lucene, uses way less memory and it is in C.

I am developing a multi-document search engine based on it, using python and web2py as framework.

查看更多
霸刀☆藐视天下
7楼-- · 2019-03-08 07:55

I recently found pyndexter. It provides abstract interface to various different backend full-text search engines/indexers. And it ships with a default pure-python implementation.

These things can be disastrously slow though in Python.

查看更多
登录 后发表回答