Re: websearch_to_tsquery() returns queries that don't match to_tsvector() - Mailing list pgsql-hackers

From Zhihong Yu
Subject Re: websearch_to_tsquery() returns queries that don't match to_tsvector()
Date
Msg-id CALNJ-vSvfzm=cjgqwOxK7K-YqFnfC5-om7=QRF7B=4tDNqvgeg@mail.gmail.com
Whole thread Raw
In response to Re: websearch_to_tsquery() returns queries that don't match to_tsvector()  (Alexander Korotkov <aekorotkov@gmail.com>)
Responses Re: websearch_to_tsquery() returns queries that don't match to_tsvector()
List pgsql-hackers


On Sun, May 2, 2021 at 11:12 AM Alexander Korotkov <aekorotkov@gmail.com> wrote:
On Sun, May 2, 2021 at 9:06 PM Zhihong Yu <zyu@yugabyte.com> wrote:
> +                   /* Everything is quotes is processed as a single token */
>
> is quotes -> in quotes
>
> +                   /* iterate to the closing quotes or end of the string*/
>
> closing quotes -> closing quote
>
> +                   /* or else ƒtsvector() will raise an error */
>
> The character before tsvector() seems to be special.

Thank you for catching.  Fixed in v3.

------
Regards,
Alexander Korotkov

Hi,
One minor comment:
+                   /* iterate to the closing quotes or end of the string*/

closing quotes -> closing quote

Cheers 

pgsql-hackers by date:

Previous
From: Alexander Korotkov
Date:
Subject: Re: websearch_to_tsquery() returns queries that don't match to_tsvector()
Next
From: Tom Lane
Date:
Subject: Re: websearch_to_tsquery() returns queries that don't match to_tsvector()