这是bug还是特性?我已经在tsvector属性上创建了一个索引(不使用字典)。
查询
SELECT title
FROM table
WHERE title_tsv @@ to_tsquery('basic') and
title_tsv @@ to_tsquery('inst:*')
返回"基本本能"。但是,查询
SELECT title
FROM table
WHERE title_tsv @@ to_tsquery('basic') and
title_tsv @@ to_tsquery('in:*')
根本不返回任何记录。我不明白为什么第二个(更通用的查询)返回的结果比第一个少?
再见
steve@steve@[local] =# select to_tsquery('in:*');
NOTICE: text-search query contains only stop words or doesn't contain lexemes, ignored
所以推测匹配该查询总是返回false?
也许你想对表单"basic&在:*'?