amutu / zhparser

zhparser is a PostgreSQL extension for full-text search of Chinese language

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

to_tsquery 返回结果为FOLLOWBY(<->),而不是 &,是否有配置项调整?

novrain opened this issue · comments

SELECT * FROM to_tsquery( 'testzhcfg', '宣传手册测试');
                 to_tsquery                  
---------------------------------------------
 '宣传手册' <-> '宣传' <-> '手册' <-> '测试'
(1 row)

Postgres 14.5

commented

看最新文档,这里应该用:plainto_tsquery 获得之前的行为
https://www.postgresql.org/docs/14/textsearch-controls.html#TEXTSEARCH-PARSING-QUERIES

看最新文档,这里应该用:plainto_tsquery 获得之前的行为 https://www.postgresql.org/docs/14/textsearch-controls.html#TEXTSEARCH-PARSING-QUERIES

多谢!我试试看。
另外实际的场景可能需要指定,貌似没有这样的方法或参数。