如何在PostgreSQL上实现中文全文搜索? [英] How do I implement full text search in Chinese on PostgreSQL?

查看:131
本文介绍了如何在PostgreSQL上实现中文全文搜索?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

以前曾询问过这个问题:



但中文没有答案尽我所能看到。我查看了OpenOffice wiki,并没有中文字典。



编辑:由于我们已经成功使用PG的英文文档的内部FTS引擎,我们不想移动到外部索引引擎。基本上,我要找的是中文FTS配置,包括简体中文(普通话)的解析器和词典。

我知道这是一个古老的问题,但有一个中文Postgres扩展:
https://github.com/amutu/zhparser/


This question has been asked before:

Postgresql full text search in postgresql - japanese, chinese, arabic

but there are no answers for Chinese as far as I can see. I took a look at the OpenOffice wiki, and it doesn't have a dictionary for Chinese.

Edit: As we are already successfully using PG's internal FTS engine for English documents, we don't want to move to an external indexing engine. Basically, what I'm looking for is a Chinese FTS configuration, including parser and dictionaries for Simplified Chinese (Mandarin).

解决方案

I know it's an old question but there's a Postgres extension for Chinese: https://github.com/amutu/zhparser/

这篇关于如何在PostgreSQL上实现中文全文搜索?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆