Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qx86j-00GEyk-GN for pgsql-bugs@arkaria.postgresql.org; Sun, 29 Oct 2023 15:53:45 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1qx86i-008Bqk-1K for pgsql-bugs@arkaria.postgresql.org; Sun, 29 Oct 2023 15:53:44 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qx86h-008Bqc-PC for pgsql-bugs@lists.postgresql.org; Sun, 29 Oct 2023 15:53:43 +0000 Received: from sss.pgh.pa.us ([68.162.161.243]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qx86f-002uSU-DX for pgsql-bugs@lists.postgresql.org; Sun, 29 Oct 2023 15:53:42 +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 39TFrZ2J2140530; Sun, 29 Oct 2023 11:53:35 -0400 From: Tom Lane To: Bruce Momjian cc: Alex Malek , pgsql-bugs@lists.postgresql.org, ngigi@at.co.ke Subject: Re: BUG #15172: Postgresql ts_headline with <-> operator does not highlight text properly In-reply-to: References: <152461454026.19805.6310947081647212894@wrigleys.postgresql.org> <1995601.1698526000@sss.pgh.pa.us> Comments: In-reply-to Bruce Momjian message dated "Sat, 28 Oct 2023 19:34:42 -0400" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <2140528.1698594815.1@sss.pgh.pa.us> Date: Sun, 29 Oct 2023 11:53:35 -0400 Message-ID: <2140529.1698594815@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Bruce Momjian writes: > Attached is a proposed doc patch. As I pointed out before, the fragments *don't* necessarily satisfy the query, so this is still promising too much. An important edge case to keep in mind is that the given text itself might not satisfy the query; ts_headline has no control over what you hand it. But even if the text as a whole does, there may not be small fragments that do. regards, tom lane