Skip to content

Conversation

@kerneltravel
Copy link

to FTS the articles's title/summary/contens. use python's Flask-WhooshAlchemy+jieba tokenizer. based on Flask-WhooshAlchemyPlus .
Note the Flask-WhooshAlchemyPlus V 0.7.4 should update flask_whooshalchemyplus.py's line 151 return self.filter('null') with return self.filter(sqlalchemy.text('null')) in case of this issue

osschina added 4 commits April 2, 2016 13:06
…for article Fulltext search. search result should with NO paginate. To make whoosh index work,you need add new articles. currently Not support reindex all old articles in db.
@kerneltravel
Copy link
Author

requirements.txt should updated to:

-r requirements/common.txt
gunicorn==19.4.5
psycopg2==2.6.1
Flask-WhooshAlchemyPlus>=0.7.4

@xpleaf
Copy link
Owner

xpleaf commented Apr 4, 2016

@kerneltravel
非常感谢你的奉献,但我以最新一次提交测试时,发现下面的几个问题:

  • 不输入内容搜索会出现werkzeug.routing.BuildError错误
  • 文章点击进去后显示whoosh.fields.UnknownFieldError错误
  • 搜索后显示不出文章内容
  • 另外对于账户的管理没有界面
    希望可以跟进一下。

@kerneltravel
Copy link
Author

好的,收到

@kerneltravel
Copy link
Author

搜索后显示不出文章内容,因为新工程目录内数据库的文章(某种操作后)还没在whoosh_index生成对应的索引信息,就搜索不到。 而用mysql 做中文全文索引就没有这个问题,mysql5.7做全文索引就不用去额外维护文件了,所以mysql的全文搜索方案更方便些。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants