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 1nQB2C-0005cW-UJ for pgsql-general@arkaria.postgresql.org; Fri, 04 Mar 2022 16:44:04 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1nQB2B-0005TZ-IU for pgsql-general@arkaria.postgresql.org; Fri, 04 Mar 2022 16:44:03 +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 1nQB2B-0005TQ-9g for pgsql-general@lists.postgresql.org; Fri, 04 Mar 2022 16:44:03 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nQB29-0002J5-3U for pgsql-general@lists.postgresql.org; Fri, 04 Mar 2022 16:44:02 +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 224GhvP53889177; Fri, 4 Mar 2022 11:43:57 -0500 From: Tom Lane To: "Bayer, Samuel" cc: Bruce Momjian , Atri Sharma , pgsql-general@lists.postgresql.org Subject: Re: [EXT] Re: Looking for tips on improving full-text search quality in Postgres In-reply-to: <7ee2afc2-dcf7-2bc9-3092-8ca58ed2b880@mitre.org> 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> Comments: In-reply-to "Bayer, Samuel" message dated "Fri, 04 Mar 2022 11:39:39 -0500" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <3889175.1646412237.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Fri, 04 Mar 2022 11:43:57 -0500 Message-ID: <3889176.1646412237@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk "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 ca= n't tell whether that corpus-wide frequency information is taken into acco= unt 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. regards, tom lane