From: PG Bug reporting form <noreply@postgresql.org>
To: pgsql-bugs@lists.postgresql.org
Cc: stas@hellofyllo.com
Subject: BUG #16744: ts_headline behaves incorrectly with <-> and proximity operators
Date: Tue, 24 Nov 2020 17:02:40 +0000
Message-ID: <16744-861496b4f8f941f2@postgresql.org> (raw)
The following bug has been logged on the website:
Bug reference: 16744
Logged by: Stas Obydionnov
Email address: stas@hellofyllo.com
PostgreSQL version: 12.3
Operating system: runs on AWS RDS
Description:
When running the following code
select ts_headline('Alpha Beta Gama', phraseto_tsquery ('alpha gama'))
or
select ts_headline('Alpha Beta Gama', to_tsquery ('alpha <-> gama'))
I would expect the result be not to be highlighted, however the result looks
like:
<b>Alpha</b> Beta <b>Gama</b>
The same behavior is found for the following operator:
select ts_headline('Alpha Beta Gama Delta', phraseto_tsquery ('alpha <3>
gama'))
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-bugs@postgresql.org
Cc: noreply@postgresql.org, pgsql-bugs@lists.postgresql.org, stas@hellofyllo.com
Subject: Re: BUG #16744: ts_headline behaves incorrectly with <-> and proximity operators
In-Reply-To: <16744-861496b4f8f941f2@postgresql.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox