Re: case and accent insensitive search under Python ?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: M4X <77M1C(at)gmx(dot)com>
Cc: pgsql-general(at)lists(dot)postgresql(dot)org
Subject: Re: case and accent insensitive search under Python ?
Date: 2023-08-19 13:35:30
Message-ID: 2310992.1692452130@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

M4X <77M1C(at)gmx(dot)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

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Justin Clift 2023-08-19 18:04:20 Re: PG minor version in data directory?
Previous Message Pierre Forstmann 2023-08-19 13:26:06 how to use query_tree_walker to get all relations used in a query