【发布时间】:2019-04-24 07:50:24
【问题描述】:
全文搜索不按某些词位显示任何值。
虽然这段代码返回true:
SELECT to_tsvector('ispell_russian', description)
@@ to_tsquery('ispell_russian', 'сам')
FROM callcenter.points_cardsservices
INNER JOIN callcenter.units ON recipientname = name
WHERE units.deptid = 5
AND id=366020;
以下选择的结果为空:
SELECT *
FROM callcenter.points_cardsservices
INNER JOIN callcenter.units ON recipientname = name
WHERE units.deptid = 5
AND id=366020
AND to_tsvector('ispell_russian', description)
@@ to_tsquery('ispell_russian', 'сам');
我要搜索的词曾经在停用词列表中。它会导致这种问题吗?此外,to_tsvector('ispell_russian', description) 上有一个索引。
【问题讨论】:
标签: postgresql full-text-search database-indexes