vectorization is not helping with plural to singular matching

Started by PG Bug reporting formover 4 years ago2 messagesdocs
Jump to latest
#1PG Bug reporting form
noreply@postgresql.org

The following documentation comment has been logged on the website:

Page: https://www.postgresql.org/docs/10/textsearch-intro.html
Description:

SELECT to_tsvector('fat cats ate fat rats') @@ to_tsquery('fat & rat');

This is giving false, even I tried for various other examples for plural to
singular matching but it fails.

e.g. select to_tsvector('buildings') @@ plainto_tsquery('building')

This simple match is also coming as false, means vectorization is not
helping with plural to singular matching.

version used:

PostgreSQL 13.4 on aarch64-unknown-linux-gnu, compiled by gcc (GCC) 7.3.1
20180712 (Red Hat 7.3.1-6), 64-bit

#2Tom Lane
tgl@sss.pgh.pa.us
In reply to: PG Bug reporting form (#1)
Re: vectorization is not helping with plural to singular matching

PG Doc comments form <noreply@postgresql.org> writes:

SELECT to_tsvector('fat cats ate fat rats') @@ to_tsquery('fat & rat');

This is giving false, even I tried for various other examples for plural to
singular matching but it fails.

The case works for me, but I have

=# show default_text_search_config;
default_text_search_config
----------------------------
pg_catalog.english
(1 row)

I'm betting your default is set to some other language in which
stripping trailing "s" wouldn't make sense.

regards, tom lane