Re: websearch_to_tsquery() returns queries that don't match to_tsvector()

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Alexander Korotkov <aekorotkov(at)gmail(dot)com>
Cc: PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>, Valentin Gatien-Baron <valentin(dot)gatienbaron(at)gmail(dot)com>, Teodor Sigaev <teodor(at)postgrespro(dot)ru>, Oleg Bartunov <obartunov(at)postgrespro(dot)ru>
Subject: Re: websearch_to_tsquery() returns queries that don't match to_tsvector()
Date: 2021-05-02 17:52:27
Message-ID: 3712260.1619977947@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs pgsql-hackers

Alexander Korotkov <aekorotkov(at)gmail(dot)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.

> I propose to push the attached patch to v14. Objections?

This patch seems to include some unrelated fooling around in GiST?

regards, tom lane

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Alexander Korotkov 2021-05-02 17:57:00 Re: websearch_to_tsquery() returns queries that don't match to_tsvector()
Previous Message Alexander Korotkov 2021-05-02 17:45:18 Re: websearch_to_tsquery() returns queries that don't match to_tsvector()

Browse pgsql-hackers by date

  From Date Subject
Next Message Alexander Korotkov 2021-05-02 17:57:00 Re: websearch_to_tsquery() returns queries that don't match to_tsvector()
Previous Message Alexander Korotkov 2021-05-02 17:45:18 Re: websearch_to_tsquery() returns queries that don't match to_tsvector()