Re: websearch_to_tsquery() returns queries that don't match to_tsvector()
Alexander Korotkov <aekorotkov@gmail.com>
From: Alexander Korotkov <aekorotkov@gmail.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>, Valentin Gatien-Baron <valentin.gatienbaron@gmail.com>,
Teodor Sigaev <teodor@postgrespro.ru>, Oleg Bartunov <obartunov@postgrespro.ru>
Date: 2021-05-02T17:57:00Z
Lists: pgsql-bugs, pgsql-hackers
Attachments
- 0001-Make-websearch_to_tsquery-parse-text-in-quotes-as-v2.patch (application/octet-stream) patch v2-0001
On Sun, May 2, 2021 at 8:52 PM Tom Lane <tgl@sss.pgh.pa.us> wrote: > Alexander Korotkov <aekorotkov@gmail.com> writes: > > It seems there is another bug with phrase search and query parsing. > > It seems to me that since 0c4f355c6a websearch_to_tsquery() should > > just parse text in quotes as a single token. Besides fixing this bug, > > it simplifies the code. > > OK ... > > > Trying to fix this bug before 0c4f355c6a doesn't seem to worth the efforts. > > Agreed, plus it doesn't sound like the sort of behavior change that > we want to push out in minor releases. +1 > > I propose to push the attached patch to v14. Objections? > > This patch seems to include some unrelated fooling around in GiST? Ooops, I've included this by oversight. The next revision is attached. Anything besides that? ------ Regards, Alexander Korotkov
Commits
-
Make websearch_to_tsquery() parse text in quotes as a single token
- eb086056fec4 14.0 landed