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: tim.connolly@oovvuu.com
Subject: BUG #17125: Operator precedence bug in websearch_to_tsquery function
Date: Wed, 28 Jul 2021 01:39:46 +0000
Message-ID: <17125-483838072f5f4bac@postgresql.org> (raw)

The following bug has been logged on the website:

Bug reference:      17125
Logged by:          Tim Connolly
Email address:      tim.connolly@oovvuu.com
PostgreSQL version: 11.12
Operating system:   Alpine Linux
Description:        

Expectation: A web-search query of 'foo bar or baz' should match documents
that contain 'foo' and 'bar', and documents that contain 'foo' and 'baz'.


postgres=# select to_tsvector('english', 'baz') @@
websearch_to_tsquery('english', 'foo bar or baz ');
 ?column?
----------
 t
(1 row)

Expected: f

postgres=# select websearch_to_tsquery('english', 'foo bar or baz');
 websearch_to_tsquery
-----------------------
 'foo' & 'bar' | 'baz'
(1 row)

Expected: 'foo' & ('bar' | 'baz')



view thread (3+ messages)  latest in thread

Message-ID: <17125-483838072f5f4bac@postgresql.org>
Permalink:  ../17125-483838072f5f4bac@postgresql.org/
Also on:    postgresql.org/message-id/17125-483838072f5f4bac@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, tim.connolly@oovvuu.com
  Subject: Re: BUG #17125: Operator precedence bug in websearch_to_tsquery function
  In-Reply-To: <17125-483838072f5f4bac@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