-
-
Notifications
You must be signed in to change notification settings - Fork 494
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
添加 postgresql 中文全文搜索 zhparser/jieba/pgroonga #59
Comments
没有这个计划,看起来需要更改 TTRSS 的搜索逻辑,mysql 有这个问题吗? |
推荐通过阅读器来实现全文搜索,比如 Reeder |
mysql没有试过哦,我自己慢慢试试看,谢谢 |
https://discourse.tt-rss.org/t/solved-search-in-chinese/2241/2 |
太菜,搞不懂pgrooga怎么配置,然后用zhparser实现了 |
@davidlauhn 可以分享一下解决方案,我看看能不能加进去。或者直接 PR 就完美了! |
@jostyee 没看懂 DEFAULT_SEARCH_LANGUAGE 的用法,我试了下那个贴里的办法还是不行。 |
@HenryQW 本人非码农/非运维,以下全部基于copy/paste,只知然,不知所以然,而且不一定准确,没法接受提问,因为真的不懂,抱歉 :-) 修改了两个 docker image docker-compose.yml
然后配置一下zhparser
重启一下postgresql,更改ttrss的搜索语言为Chinese即可。 中文搜索堪用,但貌似分词稍微有点点小问题,zhparser会把长词拆成短词匹配,应该是zhparser默认的配置还需要调教,因我要求也不高,所以将就着用了 |
@davidlauhn 启用zhparser没那么麻烦,sameersbn/postgresql 支持通过env开启的: https://github.com/sameersbn/docker-postgresql#enabling-extensions |
@jostyee 我也不想这么大费周章,可不懂嘛,所以就跟着说明一步步走咯 :-) |
@jostyee zhparser 还需要装依赖的,不能直接开启 |
This issue has been automatically marked as stale because it has not had recent activity in 14 days. It will be closed if no further activity occurs in 7 days. Thank you for your contributions. |
有空调查一下可行性。欢迎大佬 PR! |
This issue has been automatically marked as stale because it has not had recent activity in 14 days. It will be closed if no further activity occurs in 7 days. Thank you for your contributions. |
简单地改了版,有兴趣的可以试用下 postgres镜像 ttrss镜像 https://github.com/hoilc/Awesome-TTRSS/blob/master/docker-compose.yml |
@HenryQW 这个好用的话可以合并过来,ttrss的中文搜索的确不行 |
PR 一下嘛?我最近太忙了 |
@hoilc 提交下pr |
@hoilc 没有提交pr 我复制了他的代码 提交了 pr |
请问这个修改汇到latest没有?我尝试搜索中文还是没成功 |
@0rt 我提交没成功。可能方法没对 |
调试了一个最新版的 postgres-chinese-textsearch postgres-chinese-textsearch
|
postgresql自带的搜索不支持中文,导致ttrss搜索中文的根本没法用,不知道有没有计划添加 zhparser/jieba/pgrooga之类的?
The text was updated successfully, but these errors were encountered: