Closed pluveto closed 4 years ago
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. We do this to keep the amount of open issues to a manageable minimum. In any case, thanks for taking an interest in this software and contributing by opening the issue in the first place!
Right now, flarum uses a custom, but simple searching engine. With changes being proposed in flarum/issue-archive#286, it should be possible to hook up another provider like ElasticSearch which should solve this.
I figured out the way of searching Japanese words. To use ngram index, I changed to MySQL from MariaDB. And run these commands.
DROP INDEX content ON posts;
CREATE FULLTEXT INDEX content ON posts (content) WITH PARSER ngram;
Before
After
Searching in browser is showing same results.
I figured out the way of searching Japanese words. To use ngram index, I changed to MySQL from MariaDB. And run these commands.
DROP INDEX content ON posts;
CREATE FULLTEXT INDEX content ON posts (content) WITH PARSER ngram;
Before
After
Searching in browser is showing same results.
This needs MySQL 5.7+ and there are still many keywords can not be identified from posts.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. We do this to keep the amount of open issues to a manageable minimum. In any case, thanks for taking an interest in this software and contributing by opening the issue in the first place!
I'm going to go ahead and close this as it's referenced in flarum/issue-archive#203 which is now our primary UTF-8 issue, I don't see the need to have multiple UTF-8 issues open at the same time.
Bug Report
Current Behavior Can't search anything in chinese
Steps to Reproduce My website: https://www.acgmuse.com/ In the home page, you can see a post "四季折々に揺蕩いて/After the Rainまふまふ 最" Click search box, type "揺蕩", you can see nothing found: https://www.acgmuse.com/?q=%E6%8F%BA%E8%95%A9 And here is a post "亡灵序曲" https://www.acgmuse.com/d/1214 But search "亡灵序曲", you can not get this post: https://www.acgmuse.com/?q=%E4%BA%A1%E7%81%B5%E5%BA%8F%E6%9B%B2
Expected Behavior I expect: There is a post titled "亡灵序曲", and with content "这是一些帖子内容", and I search "亡灵" || "亡灵序曲" || "序曲" || "这是" || "内容", the post should have been given.
Screenshots No
Environment
Possible Solution I have no idea
Additional Context No