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 1nQB2f-0005dZ-HS for pgsql-general@arkaria.postgresql.org; Fri, 04 Mar 2022 16:44:33 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1nQB2e-00019G-Cr for pgsql-general@arkaria.postgresql.org; Fri, 04 Mar 2022 16:44:32 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nQB2e-000196-2W for pgsql-general@lists.postgresql.org; Fri, 04 Mar 2022 16:44:32 +0000 Received: from momjian.us ([72.94.173.45]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nQB2b-0002JM-7f for pgsql-general@lists.postgresql.org; Fri, 04 Mar 2022 16:44:31 +0000 Received: from bruce by momjian.us with local (Exim 4.94.2) (envelope-from ) id 1nQB2Y-008uTJ-Eu; Fri, 04 Mar 2022 11:44:26 -0500 Date: Fri, 4 Mar 2022 11:44:26 -0500 From: Bruce Momjian To: "Bayer, Samuel" Cc: Tom Lane , Atri Sharma , pgsql-general@lists.postgresql.org Subject: Re: [EXT] Re: Looking for tips on improving full-text search quality in Postgres Message-ID: References: <7ce98668-3fdb-254a-fa81-f1c4d09e6607@mitre.org> <23582_1646407541_62222F75_23582_337_5_YiIvdEhT5BecGxPY@momjian.us> <4b5afb83-3e90-17c7-2650-9bd521e958a7@mitre.org> <3886250.1646410186@sss.pgh.pa.us> <7ee2afc2-dcf7-2bc9-3092-8ca58ed2b880@mitre.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <7ee2afc2-dcf7-2bc9-3092-8ca58ed2b880@mitre.org> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Fri, Mar 4, 2022 at 11:39:39AM -0500, Bayer, Samuel wrote: > I've tried both ranking functions. I've tried a variety of the > normalization settings. I'm using the standard English language > configuration. Postgres 13. > > I do understand your FTS philosophy - I suppose I'm looking for > guidance about how best to approximate the search capability in Solr > using the FTS pieces you have. One concrete question, I suppose, > is: the classic TF/IDF search strategy relies on inverse document > frequency, which looks across the corpus. I can't tell whether that > corpus-wide frequency information is taken into account in either > ranking function. > > I don't know if Solr weights earlier tokens more heavily, but I > wouldn't be surprised if it does. Sorry, I don't know what corpus is or what you are asking? -- Bruce Momjian https://momjian.us EDB https://enterprisedb.com If only the physical world exists, free will is an illusion.