Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1n4PEj-0001ST-ST for pgsql-docs@arkaria.postgresql.org; Mon, 03 Jan 2022 15:27:01 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1n4PEi-0004VM-PJ for pgsql-docs@arkaria.postgresql.org; Mon, 03 Jan 2022 15:27:00 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1n4PEi-0004VC-I3 for pgsql-docs@lists.postgresql.org; Mon, 03 Jan 2022 15:27:00 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1n4PEg-0004Sv-9c for pgsql-docs@lists.postgresql.org; Mon, 03 Jan 2022 15:26:59 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 203FQucI3547416; Mon, 3 Jan 2022 10:26:56 -0500 From: Tom Lane To: imanpreetsinghbindra@gmail.com cc: pgsql-docs@lists.postgresql.org Subject: Re: vectorization is not helping with plural to singular matching In-reply-to: <164120567509.21660.961997564465368296@wrigleys.postgresql.org> References: <164120567509.21660.961997564465368296@wrigleys.postgresql.org> Comments: In-reply-to PG Doc comments form message dated "Mon, 03 Jan 2022 10:27:55 +0000" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <3547414.1641223616.1@sss.pgh.pa.us> Date: Mon, 03 Jan 2022 10:26:56 -0500 Message-ID: <3547415.1641223616@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk PG Doc comments form 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