BUG #17979: (pg_tsparser + ts_headline) duplicate output if dot present

Started by PG Bug reporting formalmost 3 years ago2 messagesbugs
Jump to latest
#1PG Bug reporting form
noreply@postgresql.org

The following bug has been logged on the website:

Bug reference: 17979
Logged by: Artem
Email address: vicreal@yandex.ru
PostgreSQL version: 14.4
Operating system: Windows 10
Description:

CREATE EXTENSION pg_tsparser;
CREATE TEXT SEARCH CONFIGURATION public.vp_ts_config_test (PARSER =
tsparser);
SELECT ts_headline('vp_ts_config_test', 'one.two',
websearch_to_tsquery('three'), 'HighlightAll=TRUE, StartSel="<mark>",
StopSel="</mark>"');

Result:
one.twoone.two

Must be:
one.two

#2Tom Lane
tgl@sss.pgh.pa.us
In reply to: PG Bug reporting form (#1)
Re: BUG #17979: (pg_tsparser + ts_headline) duplicate output if dot present

PG Bug reporting form <noreply@postgresql.org> writes:

CREATE EXTENSION pg_tsparser;
CREATE TEXT SEARCH CONFIGURATION public.vp_ts_config_test (PARSER =
tsparser);
SELECT ts_headline('vp_ts_config_test', 'one.two',
websearch_to_tsquery('three'), 'HighlightAll=TRUE, StartSel="<mark>",
StopSel="</mark>"');

Result:
one.twoone.two

I don't see any such misbehavior with the built-in parser,
so I think you need to report this to the author(s) of the
pg_tsparser extension. This list is just concerned with
bugs in the core Postgres distribution.

regards, tom lane