BUG #15689: Stemming of negation/not operator - Mailing list pgsql-bugs

From PG Bug reporting form
Subject BUG #15689: Stemming of negation/not operator
Date
Msg-id 15689-3f2aba943354ac68@postgresql.org
Whole thread Raw
Responses Re: BUG #15689: Stemming of negation/not operator
List pgsql-bugs
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.


pgsql-bugs by date:

Previous
From: Jon Wedell
Date:
Subject: Re: Bug involving plus sign before newline in text field beingduplicated or stripped
Next
From: Tom Lane
Date:
Subject: Re: BUG #15689: Stemming of negation/not operator