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 1nQB3s-0005fL-Ix for pgsql-general@arkaria.postgresql.org; Fri, 04 Mar 2022 16:45:48 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1nQB3r-0005OP-Ey for pgsql-general@arkaria.postgresql.org; Fri, 04 Mar 2022 16:45:47 +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 1nQB3r-0005OG-4x for pgsql-general@lists.postgresql.org; Fri, 04 Mar 2022 16:45:47 +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 1nQB3o-0002Lv-RK for pgsql-general@lists.postgresql.org; Fri, 04 Mar 2022 16:45:46 +0000 Received: from bruce by momjian.us with local (Exim 4.94.2) (envelope-from ) id 1nQB3m-008ucw-K8; Fri, 04 Mar 2022 11:45:42 -0500 Date: Fri, 4 Mar 2022 11:45:42 -0500 From: Bruce Momjian To: Tom Lane Cc: "Bayer, Samuel" , 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> <3889176.1646412237@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3889176.1646412237@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Fri, Mar 4, 2022 at 11:43:57AM -0500, Tom Lane wrote: > "Bayer, Samuel" writes: > > 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. > > The documentation is pretty clear that they don't, they just consider each > document in isolation. Building a structure that would allow more-global > info to be taken into account is an interesting project that nobody's > tackled. Oh, you mean like, "pizza" is used only in this document vs it being used in every document. Should we add some documentation about this or is it already clear? -- Bruce Momjian https://momjian.us EDB https://enterprisedb.com If only the physical world exists, free will is an illusion.