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 1uIpzy-00CD4M-RN for pgsql-sql@arkaria.postgresql.org; Sat, 24 May 2025 14:37:18 +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 1uIpzx-00CCz0-OQ for pgsql-sql@arkaria.postgresql.org; Sat, 24 May 2025 14:37:17 +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 1uIpzx-00CCys-Fg for pgsql-sql@lists.postgresql.org; Sat, 24 May 2025 14:37:16 +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.96) (envelope-from ) id 1uIpzu-000gsd-34 for pgsql-sql@lists.postgresql.org; Sat, 24 May 2025 14:37:16 +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 54OEbCHj3061139; Sat, 24 May 2025 10:37:12 -0400 From: Tom Lane To: Thorsten cc: pgsql-sql@lists.postgresql.org Subject: Re: Full Text Search German Date In-reply-to: <8eb428fc-50ba-4b63-a509-6f50a8951a07@gmx.de> References: <8eb428fc-50ba-4b63-a509-6f50a8951a07@gmx.de> Comments: In-reply-to Thorsten message dated "Sat, 24 May 2025 09:51:00 +0200" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <3061137.1748097432.1@sss.pgh.pa.us> Date: Sat, 24 May 2025 10:37:12 -0400 Message-ID: <3061138.1748097432@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Thorsten writes: > I create a tsvector (in a column named "search") from document files, > which contain a German date. When I select the column, I can see it has > been tokenized: > '25.05.2025':56,99 (plus many other tokens) > but > SELECT id FROM documents WHERE > search @@ to_tsquery('german', '25.05.2025') > gives no result. What is the plan for that query --- is it using an index? Maybe the index is corrupt, in which case REINDEX could fix it. regards, tom lane