Re: vectorization is not helping with plural to singular matching

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: imanpreetsinghbindra(at)gmail(dot)com
Cc: pgsql-docs(at)lists(dot)postgresql(dot)org
Subject: Re: vectorization is not helping with plural to singular matching
Date: 2022-01-03 15:26:56
Message-ID: 3547415.1641223616@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-docs

PG Doc comments form <noreply(at)postgresql(dot)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

In response to

Browse pgsql-docs by date

  From Date Subject
Next Message PG Doc comments form 2022-01-04 07:40:12 Add TypeScript driver
Previous Message Eric Mutta 2022-01-03 12:40:40 Re: Typo in "27.2.8. Synchronous Replication"