python 开源全文检索工具 Whoosh

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了python 开源全文检索工具 Whoosh相关的知识,希望对你有一定的参考价值。

About Whoosh

Whoosh is a fast, featureful full-text indexing and searching library implemented in pure Python. Programmers can use it to easily add search functionality to their applications and websites. Every part of how Whoosh works can be extended or replaced to meet your needs exactly.

Some of Whoosh‘s features include:

  • Pythonic API.
  • Pure-Python. No compilation or binary packages needed, no mysterious crashes.
  • Fielded indexing and search.
  • Fast indexing and retrieval -- faster than any other pure-Python search solution I know of. See Benchmarks.
  • Pluggable scoring algorithm (including BM25F), text analysis, storage, posting format, etc.
  • Powerful query language.
  • Production-quality pure Python spell-checker (as far as I know, the only one).

Whoosh might be useful in the following circumstances:

  • Anywhere a pure-Python solution is desirable to avoid having to build/compile native libraries (or force users to build/compile them).
  • As a research platform (at least for programmers that find Python easier to read and work with than Java ;)
  • When an easy-to-use Pythonic interface is more important to you than raw speed.
  • If your application can make good use of one deeply integrated search/lookup solution you can rely on just being there rather than having two different search solutions (a simple/slow/homegrown one integrated, an indexed/fast/external binary dependency one as an option).

Whoosh was created and is maintained by Matt Chaput. It was originally created for use in the online help system of Side Effects Software‘s 3D animation software Houdini. Side Effects Software Inc. graciously agreed to open-source the code.

 

 

https://bitbucket.org/mchaput/whoosh/wiki/Home

以上是关于python 开源全文检索工具 Whoosh的主要内容,如果未能解决你的问题,请参考以下文章

Django全文检索实现:基于HayStack + Whoosh引擎 + Jieba中文分词

django-haystack全文检索

全文检索的配置

全文检索

Django使用haystack借助Whoosh实现全文搜索功能

haystack(django的全文检索模块)