BUG #17043: Full text search - to_tsvector treating a full stop wrong - Mailing list pgsql-bugs

From PG Bug reporting form
Subject BUG #17043: Full text search - to_tsvector treating a full stop wrong
Date
Msg-id 17043-03f93dfe629bcc1b@postgresql.org
Whole thread Raw
List pgsql-bugs
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


pgsql-bugs by date:

Previous
From: Kim-Alexander Brodowski
Date:
Subject: Re: BUG #17042: Concurrent Modifications of PostgreSQL Function Can Corrupt Database
Next
From: PG Bug reporting form
Date:
Subject: BUG #17044: installation of postgresql from the pgdg repository conflicts with Fedora's python gdal