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 1qXM7B-00653o-7J for pgsql-general@arkaria.postgresql.org; Sat, 19 Aug 2023 13:35:41 +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 1qXM78-000eyp-SR for pgsql-general@arkaria.postgresql.org; Sat, 19 Aug 2023 13:35:39 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qXM78-000eyg-H6 for pgsql-general@lists.postgresql.org; Sat, 19 Aug 2023 13:35:38 +0000 Received: from sss.pgh.pa.us ([68.162.161.243]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qXM75-0013iw-UW for pgsql-general@lists.postgresql.org; Sat, 19 Aug 2023 13:35:37 +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 37JDZUS22310993; Sat, 19 Aug 2023 09:35:30 -0400 From: Tom Lane To: M4X <77M1C@gmx.com> cc: pgsql-general@lists.postgresql.org Subject: Re: case and accent insensitive search under Python ? In-reply-to: References: Comments: In-reply-to M4X <77M1C@gmx.com> message dated "Sat, 19 Aug 2023 09:25:29 +0200" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <2310991.1692452130.1@sss.pgh.pa.us> Date: Sat, 19 Aug 2023 09:35:30 -0400 Message-ID: <2310992.1692452130@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk M4X <77M1C@gmx.com> writes: > It seem that is possible to make a search that is case and accent > insensitive. > |I've dig https://www.postgresql.org/docs/current/textsearch-intro.html > and other resources,| > |but I didn't find yet an example that demonstrate it. The text search functionality is already case-insensitive, but not accent-insensitive (at least in the common built-in configurations). To make it accent-insensitive, you can set up a custom configuration using the "unaccent" module. See https://www.postgresql.org/docs/current/unaccent.html regards, tom lane