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 1nQBBr-0005u3-6s for pgsql-general@arkaria.postgresql.org; Fri, 04 Mar 2022 16:54:03 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1nQBBq-0007xk-7C for pgsql-general@arkaria.postgresql.org; Fri, 04 Mar 2022 16:54:02 +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 1nQBBp-0007xY-TG for pgsql-general@lists.postgresql.org; Fri, 04 Mar 2022 16:54:01 +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 1nQBBj-0002Of-DN for pgsql-general@lists.postgresql.org; Fri, 04 Mar 2022 16:54:01 +0000 Received: from bruce by momjian.us with local (Exim 4.94.2) (envelope-from ) id 1nQBBg-008v5C-Q2; Fri, 04 Mar 2022 11:53:52 -0500 Date: Fri, 4 Mar 2022 11:53:52 -0500 From: Bruce Momjian To: Atri Sharma Cc: Tom Lane , "Bayer, Samuel" , pgsql-general@lists.postgresql.org Subject: Re: [EXT] Re: Looking for tips on improving full-text search quality in Postgres Message-ID: References: <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=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Fri, Mar 4, 2022 at 10:22:11PM +0530, Atri Sharma wrote: > TF/IDF should be pretty simple to implement IMO. > > And no, Solr does not give preference to prior documents.  > > However, Solr allows you to "boost" specific terms, thus creating the > impression of preference.  Postgres can do that too. -- Bruce Momjian https://momjian.us EDB https://enterprisedb.com If only the physical world exists, free will is an illusion.