如何将字符串中的特殊字符传递给to_tsquery
?举例来说,这种查询:转义to_tsquery中的特殊字符
select to_tsquery('AT&T');
产地:
NOTICE: text-search query contains only stop words or doesn't contain lexemes, ignored
to_tsquery
------------
(1 row)
编辑:我也注意到,有在to_tsvector
同样的问题。
反正是有例如支持部分匹配这条评论是非常有用的添加:*到此结束? –