[ok] now the fulltext search(FTS) of blog article works well. support chinese FTS(新增全文搜索功能)#4
Open
kerneltravel wants to merge 4 commits intoxpleaf:masterfrom
Open
[ok] now the fulltext search(FTS) of blog article works well. support chinese FTS(新增全文搜索功能)#4kerneltravel wants to merge 4 commits intoxpleaf:masterfrom
kerneltravel wants to merge 4 commits intoxpleaf:masterfrom
Conversation
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.
Author
|
requirements.txt should updated to: -r requirements/common.txt |
Owner
|
@kerneltravel
|
Author
|
好的,收到 |
Author
|
搜索后显示不出文章内容,因为新工程目录内数据库的文章(某种操作后)还没在whoosh_index生成对应的索引信息,就搜索不到。 而用mysql 做中文全文索引就没有这个问题,mysql5.7做全文索引就不用去额外维护文件了,所以mysql的全文搜索方案更方便些。 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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