BUG #16345: ts_headline does not find phrase matches correctly - Mailing list pgsql-bugs

From PG Bug reporting form
Subject BUG #16345: ts_headline does not find phrase matches correctly
Date
Msg-id 16345-2e0cf5cddbdcd3b4@postgresql.org
Whole thread Raw
Responses Re: BUG #16345: ts_headline does not find phrase matches correctly
List pgsql-bugs
The following bug has been logged on the website:

Bug reference:      16345
Logged by:          Augustinas Jokubauskas
Email address:      doitsimplefy@gmail.com
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.


pgsql-bugs by date:

Previous
From: PG Bug reporting form
Date:
Subject: BUG #16344: json_agg slow performance vs jsonb_agg, truncate table for master table with remote partition
Next
From: Alexander Lakhin
Date:
Subject: Re: BUG #16329: Valgrind detects an invalid read when building a gistindex with buffering