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')