pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: christian@games.no
Cc: pgsql-bugs@lists.postgresql.org
Subject: Re: Bug Report | Using ts_headline with the <-> operator
Date: Wed, 20 Jan 2021 10:38:53 -0500
Message-ID: <595533.1611157133@sss.pgh.pa.us> (raw)
In-Reply-To: <011a01d6ef29$0e8e1b20$2baa5160$@games.no>
References: <011a01d6ef29$0e8e1b20$2baa5160$@games.no>

<christian@games.no> writes:
> Assuming the following query:

> SELECT ts_headline('simple','The Cyberpunk launch did not go as expected for
> Cyberpunk Fans around the world', phraseto_tsquery('simple','Cyberpunk
> Fans')::tsquery);

> The returned result is:

> The <b>Cyberpunk</b> launch did not go as expected for <b>Cyberpunk</b>
> <b>Fans</b> around the world

This is behaving as designed, and I don't really think it's wrong.
See previous discussion at

https://www.postgresql.org/message-id/flat/16744-861496b4f8f941f2%40postgresql.org

It is unfortunate that the only way to customize this type of decision
is to build your own new text search parser.  Perhaps someday someone
will put in the work to make that stuff a bit more modular and easier
to change.

			regards, tom lane





view thread (2+ messages)

Message-ID: <595533.1611157133@sss.pgh.pa.us>
Permalink:  ../595533.1611157133@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/595533.1611157133@sss.pgh.pa.us

 · 

reply

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: tgl@sss.pgh.pa.us, christian@games.no, pgsql-bugs@lists.postgresql.org
  Subject: Re: Bug Report | Using ts_headline with the <-> operator
  In-Reply-To: <595533.1611157133@sss.pgh.pa.us>

* 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