pg.ddx.io  pgsql-docs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: imanpreetsinghbindra@gmail.com
Cc: pgsql-docs@lists.postgresql.org
Subject: Re: vectorization is not helping with plural to singular matching
Date: Mon, 03 Jan 2022 10:26:56 -0500
Message-ID: <3547415.1641223616@sss.pgh.pa.us> (raw)
In-Reply-To: <164120567509.21660.961997564465368296@wrigleys.postgresql.org>
References: <164120567509.21660.961997564465368296@wrigleys.postgresql.org>

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





view thread (2+ messages)

Message-ID: <3547415.1641223616@sss.pgh.pa.us>
Permalink:  ../3547415.1641223616@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/3547415.1641223616@sss.pgh.pa.us

 · 

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-docs@postgresql.org
  Cc: tgl@sss.pgh.pa.us, imanpreetsinghbindra@gmail.com, pgsql-docs@lists.postgresql.org
  Subject: Re: vectorization is not helping with plural to singular matching
  In-Reply-To: <3547415.1641223616@sss.pgh.pa.us>

* 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