amutu / zhparser

zhparser is a PostgreSQL extension for full-text search of Chinese language
Other
719 stars 86 forks source link

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

Closed novrain closed 1 year ago

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

Postgres 14.5

amutu commented 2 years ago

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

novrain commented 1 year ago

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

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