原作者很久没维护了,因为项目用到,折腾了半天,决定 fork 出来。
合并了一些原项目上的 pull request 和 issue
修复了 jieba 分词的适配问题
添加了一个比较简单的模糊搜索的功能,因为有时搜词语搜不到,原来的结果再加上用 SQL LIKE 搜出来的结果可以让命中率更高一些。
代码在我的:Github
也可以通过 pip 来安装
INSTALL
$ pip install flask_whooshalchemyplus
or
$ git clone https://github.com/Revolution1/Flask-WhooshAlchemyPlus.git
$ cd Flask-WhooshAlchemyPlus && python setup.py install
CHANGELOG
- v0.7.4 :
- Feature: add fuzzy-searching using SQL LIKE
- v0.7.3 :
- Fix: Chinese analyzer does not take affect
- v0.7.2 :
- Fix: index_all cannot detect indexable models by itself
- v0.7.1 :
- Feature: Indexing child module class github issue #43
- Feature: Add python3 supprot
- Fix: Obey result sorting if caller explicitly uses order_by() on query github pull request #32
- Fix: custom query_class usage github pull request #35
- Feature: add
WHOOSH_DISABLEDoption to disable whooshalchemyplus at runtime