From: dDave <tinywong@hotmail.com>
To: pgsql-admin@postgresql.org
Subject: Touch search question
Date: Tue, 05 Oct 2004 14:12:31 GMT
Message-ID: <bna5m0paeag6aaluvssr68l8jvq7bg9tae@4ax.com> (raw)
Hi,
With a database loaded with North American city names, and clients in
Québec, I have run into a tough problem for me. Taking input from a
text box, I use a regex to clean out any non-essential characters like
the set of (.- ) dot, dash, space etc...
I then do an ilike comparison on the city names to find matches and
report back the results. Problem is, a lot of cities have accented
names like Montréal. And I find that while e and E are easily matched
when using ILIKE, é is not É, making ILIKE a useless help...
How would one better craft a search capable of finding entries when
accented characters come into play? Should I look at creating a
mapping of say é and É to just e?
Any thoughts on the best way to SELECT matches in this case most
appreciated!!
Dave
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-admin@postgresql.org
Cc: tinywong@hotmail.com
Subject: Re: Touch search question
In-Reply-To: <bna5m0paeag6aaluvssr68l8jvq7bg9tae@4ax.com>
References: <bna5m0paeag6aaluvssr68l8jvq7bg9tae@4ax.com>
* 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