BUG #16345: ts_headline does not find phrase matches correctly
The Post Office <noreply@postgresql.org>
From: PG Bug reporting form <noreply@postgresql.org>
To: pgsql-bugs@lists.postgresql.org
Cc: doitsimplefy@gmail.com
Date: 2020-04-05T21:49:23Z
Lists: pgsql-bugs, pgsql-hackers
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.
Commits
-
Further cleanup of ts_headline code.
- c2599b93df0a 9.6.18 landed
- 9be664d715eb 10.13 landed
- d9a3fe4c56fe 11.8 landed
- 07453e9e332d 12.3 landed
- 2e0e409e3cba 13.0 landed
-
Fix default text search parser's ts_headline code for phrase queries.
- c9b0c678d30a 13.0 landed
- c81de3a8230c 9.6.18 landed
- 91be1d1906a7 11.8 landed
- 841378947722 12.3 landed
- 5f7247b3ba6b 10.13 landed
-
Cosmetic improvements for default text search parser's ts_headline code.
- ff081d6bb872 11.8 landed
- afab3998685f 10.13 landed
- 638519156ef0 9.6.18 landed
- b10f8bb9fd39 13.0 landed
- 1306edeae3b3 12.3 landed