From: PG Bug reporting form <noreply@postgresql.org>
To: pgsql-bugs@lists.postgresql.org
Cc: ivanviragine@gmail.com
Subject: BUG #15689: Stemming of negation/not operator
Date: Tue, 12 Mar 2019 20:00:43 +0000
Message-ID: <15689-3f2aba943354ac68@postgresql.org> (raw)
The following bug has been logged on the website:
Bug reference: 15689
Logged by: Ivan Viragine
Email address: ivanviragine@gmail.com
PostgreSQL version: 10.3
Operating system: MacOS and centOS
Description:
When using to_tsquery function it is stemming negation/not parts of the
query, where it probably shouldn't.
Some examples:
SELECT to_tsquery('english', 'car & !cars');
to_tsquery
----------------
'car' & !'car'
SELECT to_tsquery('english', 'corporation & !corporative');
to_tsquery
----------------------
'corpor' & !'corpor'
IMHO, it shouldn't stem cars to car, neither corporative to corpor. There
are several examples where it could lead to incorrect results.
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-bugs@postgresql.org
Cc: noreply@postgresql.org, ivanviragine@gmail.com
Subject: Re: BUG #15689: Stemming of negation/not operator
In-Reply-To: <15689-3f2aba943354ac68@postgresql.org>
References: <15689-3f2aba943354ac68@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