pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: PG Bug reporting form <noreply@postgresql.org>
To: pgsql-bugs@lists.postgresql.org
Cc: augustinas@spotlightdata.co.uk
Subject: BUG #16146: ts_headline does not find phrase matches correctly
Date: Wed, 04 Dec 2019 08:39:48 +0000
Message-ID: <16146-494211a8f1aacbaa@postgresql.org> (raw)

The following bug has been logged on the website:

Bug reference:      16146
Logged by:          Augustinas Jokubauskas
Email address:      augustinas@spotlightdata.co.uk
PostgreSQL version: 12.0
Operating system:   Ubuntu 18.04.3
Description:        

When query:
```
select ts_headline(
    $$Lorem ipsum urna.  Nullam  nullam ullamcorper urna.$$,
    to_tsquery('Lorem') && phraseto_tsquery('ullamcorper urna'),
    'StartSel=#$#, StopSel=#$#, FragmentDelimiter=$#$, MaxFragments=100,
MaxWords=100, MinWords=1'
);
```
is ran, a fragment of
> Lorem ipsum urna.  Nullam  nullam ullamcorper urna.
should be returned, however, the result is a single word of #$#Lorem#$# is
returned, meaning that ts_headline did not find the queried string.



Message-ID: <16146-494211a8f1aacbaa@postgresql.org>
Permalink:  ../16146-494211a8f1aacbaa@postgresql.org/
Also on:    postgresql.org/message-id/16146-494211a8f1aacbaa@postgresql.org

 · 

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: noreply@postgresql.org, augustinas@spotlightdata.co.uk
  Subject: Re: BUG #16146: ts_headline does not find phrase matches correctly
  In-Reply-To: <16146-494211a8f1aacbaa@postgresql.org>
  References: <16146-494211a8f1aacbaa@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