From: Tom Lane <tgl@sss.pgh.pa.us>
To: M4X <77M1C@gmx.com>
Cc: pgsql-general@lists.postgresql.org
Subject: Re: case and accent insensitive search under Python ?
Date: Sat, 19 Aug 2023 09:35:30 -0400
Message-ID: <2310992.1692452130@sss.pgh.pa.us> (raw)
In-Reply-To: <e24e32dd-c5b5-a959-e019-93ab9bcf9a30@gmx.com>
References: <e24e32dd-c5b5-a959-e019-93ab9bcf9a30@gmx.com>
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: tgl@sss.pgh.pa.us, 77M1C@gmx.com
Subject: Re: case and accent insensitive search under Python ?
In-Reply-To: <2310992.1692452130@sss.pgh.pa.us>
References: <e24e32dd-c5b5-a959-e019-93ab9bcf9a30@gmx.com> <2310992.1692452130@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox