agora inbox for pgsql-bugs@postgresql.org  
help / color / mirror / Atom feed
From: PG Bug reporting form <noreply@postgresql.org>
To: pgsql-bugs@lists.postgresql.org
Cc: doitsimplefy@gmail.com
Subject: BUG #16345: ts_headline does not find phrase matches correctly
Date: Sun, 05 Apr 2020 21:49:23 +0000
Message-ID: <16345-2e0cf5cddbdcd3b4@postgresql.org> (raw)

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.



view thread (4+ messages)  latest in thread

Message-ID: <16345-2e0cf5cddbdcd3b4@postgresql.org>
Permalink:  ../16345-2e0cf5cddbdcd3b4@postgresql.org/
Also on:    postgresql.org/message-id/16345-2e0cf5cddbdcd3b4@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 using the --to and --cc options:
  reply via email

  To: pgsql-bugs@postgresql.org
  Cc: noreply@postgresql.org, pgsql-bugs@lists.postgresql.org, doitsimplefy@gmail.com
  Subject: Re: BUG #16345: ts_headline does not find phrase matches correctly
  In-Reply-To: <16345-2e0cf5cddbdcd3b4@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 agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox