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: james.inform@pharmapp.de
Subject: BUG #17043: Full text search - to_tsvector treating a full stop wrong
Date: Wed, 02 Jun 2021 10:04:59 +0000
Message-ID: <17043-03f93dfe629bcc1b@postgresql.org> (raw)

The following bug has been logged on the website:

Bug reference:      17043
Logged by:          James Inform
Email address:      james.inform@pharmapp.de
PostgreSQL version: 13.3
Operating system:   Mac and Ubuntu
Description:        

It seems that to_tsvector is treating full stops wrong. If a sentence end
with a '.' and the following word isn't separated by a space, to_tsvector
will identify it as one lexeme:

select to_tsvector('english','This is the rat.Fat is she!')
'rat.fat':4

select to_tsvector('english','This is the rat. Fat is she!')
'fat':5 'rat':4

select to_tsvector('english','This is the rat.Fat is she!') @@
websearch_to_tsquery('fat') 
false

select to_tsvector('english','This is the rat. Fat is she!') @@
websearch_to_tsquery('fat') 
true



Message-ID: <17043-03f93dfe629bcc1b@postgresql.org>
Permalink:  ../17043-03f93dfe629bcc1b@postgresql.org/
Also on:    postgresql.org/message-id/17043-03f93dfe629bcc1b@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, james.inform@pharmapp.de
  Subject: Re: BUG #17043: Full text search - to_tsvector treating a full stop wrong
  In-Reply-To: <17043-03f93dfe629bcc1b@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