Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1gHkQf-0001Wb-DD for pgsql-general@arkaria.postgresql.org; Wed, 31 Oct 2018 06:56:37 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gHkQd-0007xG-TO for pgsql-general@arkaria.postgresql.org; Wed, 31 Oct 2018 06:56:35 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1gHkQd-0007x9-HW for pgsql-general@lists.postgresql.org; Wed, 31 Oct 2018 06:56:35 +0000 Received: from mx1.mailbox.org ([80.241.60.212]) by makus.postgresql.org with esmtps (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gHkQa-0007H8-Q8 for pgsql-general@lists.postgresql.org; Wed, 31 Oct 2018 06:56:34 +0000 Received: from smtp1.mailbox.org (smtp1.mailbox.org [80.241.60.240]) (using TLSv1.2 with cipher ECDHE-RSA-CHACHA20-POLY1305 (256/256 bits)) (No client certificate requested) by mx1.mailbox.org (Postfix) with ESMTPS id EA47D4B34C; Wed, 31 Oct 2018 07:56:30 +0100 (CET) X-Virus-Scanned: amavisd-new at heinlein-support.de Received: from smtp1.mailbox.org ([80.241.60.240]) by spamfilter05.heinlein-hosting.de (spamfilter05.heinlein-hosting.de [80.241.56.123]) (amavisd-new, port 10030) with ESMTP id bPV0FR7WjQr8; Wed, 31 Oct 2018 07:56:29 +0100 (CET) Message-ID: <505afc361e3f8871f78b5195c6a0bc2e312efcf5.camel@cybertec.at> Subject: Re: Full-text Search - Thesaurus relationships From: Laurenz Albe To: Nicolas Paris , pgsql-general@lists.postgresql.org Date: Wed, 31 Oct 2018 07:56:28 +0100 In-Reply-To: <20181030230507.rgz2wys23vejimcq@riseup.net> References: <20181030230507.rgz2wys23vejimcq@riseup.net> Organization: Cybertec Content-Type: text/plain; charset="UTF-8" Mime-Version: 1.0 Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Nicolas Paris wrote: > The documentation[1] says thesaurus can include informations of terms > relationships such broader terms, preferred terms ... > > I haven't been able to find out how to exploit those relationship in > postgres. Is there any keyword to and associated syntax to make use of > them ? No, it should happen automatically. Essentially, it is an extended synonym dictionary, and if you specify it for a certain token type in your text search configuration, it will replace certain phrases with something else. Yours, Laurenz Albe -- Cybertec | https://www.cybertec-postgresql.com