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 1nNv2N-0004cv-Gs for pgsql-general@arkaria.postgresql.org; Sat, 26 Feb 2022 11:14:56 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1nNv1o-0005LQ-T8 for pgsql-general@arkaria.postgresql.org; Sat, 26 Feb 2022 11:14:20 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nNv1m-0005HA-AB for pgsql-general@lists.postgresql.org; Sat, 26 Feb 2022 11:14:20 +0000 Received: from wout3-smtp.messagingengine.com ([64.147.123.19]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nNv1i-0004bn-GA for pgsql-general@lists.postgresql.org; Sat, 26 Feb 2022 11:14:17 +0000 Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailout.west.internal (Postfix) with ESMTP id 69FF532004AE for ; Sat, 26 Feb 2022 06:14:12 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute2.internal (MEProxy); Sat, 26 Feb 2022 06:14:12 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bittivirhe.fi; h=cc:content-type:date:date:from:from:in-reply-to:message-id :mime-version:reply-to:sender:subject:subject:to:to; s=fm2; bh=E NlnblmuUDp+hB1IUHwzqgrZ2DltUuVUP/Sr7+RZKKo=; b=t4/CjyMF3LvcmyTKN Kn01u9GIjMVbLR5vO8YwqgUqlIC5yC8PQm4DPBFW99Y+J+NfdeiE++SwhGlvPdOD yaKnID9e7KIXTXfQEwRE4aiqaLgNesSrlu0JK3cpVEp1HbxwT3r8Xnlp2Ydlt3uT YRwPA7qRupy1CF9N5x5f4ecRR05SwNgjnVFurtvJeTDc+CrQEvNVFgIA239QNBTm zr+OIMJE5zt5q0T8vZv4KxgLoQqdAHSwuAzz7zkrzNheqm+7fsmTUbrL5GBJ5Zu/ ndwKsW0doR2XLjG1ztCNS4kj8dtvlQZ0rO5ks82hAqxrmBarrZW+s6EaoqL+VL7b OQJkw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:date:from:from :in-reply-to:message-id:mime-version:reply-to:sender:subject :subject:to:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm2; bh=ENlnblmuUDp+hB1IUHwzqgrZ2DltUuVUP/Sr7+RZK Ko=; b=cM+934Ahu8JGDQnJxIVYIh9KRcnyAxItJ+RRvNzmdqaE2ECDdBUOYn1Fi MgO6Ycc/zRFaHC7bsyZ7yDE52wSWCLKoc1JcbnR1fllMuweyEp6n119+tZai1a27 KItSLTN9OR6f3JGxul0RkcT2TH4qraykDZoXQvI/O/WsR1nZcNaA756GVZ45LG/B 1zxhnZ/+LosvNZ3FkkmCiarvJZjDUDC1VjYQwTf7eYpeSJ+oX7TRBtmoN0sfDPAb ydWxPlErhnNiM5ZPnR9sYc3igg1KWY0DXMQ8sEBcklexwz3wBDAr+04BFcvaoZSJ 7p2qVQNk4APDcO+bEi/DqNmR+Q2Wg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvvddrleeigddvfecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecunecujfgurhephffvufffkfgfgggtsehttdertddtre ejnecuhfhrohhmpefvihhmohgpofihhihrmocuoehtihhmohdrmhihhihrrgessghithht ihhvihhrhhgvrdhfiheqnecuggftrfgrthhtvghrnhepjeffgeejudelteegveehteefud dtheelveekgfekfeejleeklefhtdekkefgheeinecuffhomhgrihhnpeifihhkihhpvggu ihgrrdhorhhgpdgtohhmphhoshgvrdgtohhmnecuvehluhhsthgvrhfuihiivgeptdenuc frrghrrghmpehmrghilhhfrhhomhepthhimhhordhmhiihrhgrsegsihhtthhivhhirhhh vgdrfhhi X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA for ; Sat, 26 Feb 2022 06:14:10 -0500 (EST) From: =?utf-8?Q?Timo_Myyr=C3=A4?= To: pgsql-general@lists.postgresql.org Subject: What IR model the PostgreSQL FTS implementation is based on? Date: Sat, 26 Feb 2022 13:14:08 +0200 Message-ID: <87k0dh98xr.fsf@asteroid.bittivirhe.fi> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Hi, I'm trying to figure out what information retrieval model[1] the PostgreSQL Full-Text Search is based on. Based on my reading on the PostgreSQL documentation I would have guessed extended boolean model but I came across an web article by Compose[2] which claims that FTS is based on vector space model instead. The article does not offer anything to back this claim so I thought to ask here if anyone has more accurate details to share. I've tried to look this up from postgresql sources but so far I have not found anything. Timo 1: https://en.wikipedia.org/wiki/Information_retrieval#/media/File:Information-Retrieval-Models.png 2: https://www.compose.com/articles/indexing-for-full-text-search-in-postgresql/