PostgreSQL 中的查询扩展

发布于 2024-12-14 12:39:16 字数 157 浏览 3 评论 0原文

我刚刚在 PostgreSQL 手册中看到它提供了全文搜索功能,包括对文档文本进行解析、索引和搜索。
我的问题是:是否可以使用同义词库(或字典)获得查询扩展机制?我还没有尝试这些功能......但似乎单个词素被另一个词素取代。是否可以将查询词素添加到查询中,这些词素是查询中最初词素的同义词?

I've just read in PostgreSQL manual that it provide full-text search functions including parsing, indexing and searching on documents text.
My question is: it is possible to obtain a query expansion mechanism using a thesauri (or a dictionary)? I do not try these function yet...but it seems that a single lexeme is substited by another single lexeme. Is it possible to add to the query lexemes that are synonims of the lexemes originally in the query?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

未央 2024-12-21 12:39:16

我从未使用过它,但是是的,似乎有一个同义词词典可以满足您的要求:

http://www.postgresql.org/docs/9.0/static/textsearch-dictionaries.html#TEXTSEARCH-THESAURUS

I've never used it but yes, there seems to be a thesaurus dictionary that may do what you want:

http://www.postgresql.org/docs/9.0/static/textsearch-dictionaries.html#TEXTSEARCH-THESAURUS

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文