PostgreSQL 中的查询扩展
我刚刚在 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我从未使用过它,但是是的,似乎有一个同义词词典可以满足您的要求:
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