From: | Najib Abi Fadel <nabifadel(at)yahoo(dot)com> |
---|---|
To: | Michael Vodep <mvodep(at)gmx(dot)net>, pgsql-general(at)postgresql(dot)org |
Subject: | Re: Full Text fuzzy search |
Date: | 2006-09-28 07:57:06 |
Message-ID: | 20060928075707.60086.qmail@web38305.mail.mud.yahoo.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
for PostgreSQL, Postgresql, postgresql u can use ilike:
example: select * from table where name ilike 'postgresql'
U can even try:
select * from table where name ilike '%postgresql%'
the '%' is for any set of caracters (like * when u are doing a shell commande)
For the others (bostgresql, posdgresql, bosdgresql) i think u should write a function, that's what we did in our application.
HTH
Najib.
Michael Vodep <mvodep(at)gmx(dot)net> wrote: Hi
How can i do a full text fuzzy search with PgSQL?
For example: i got a text domain. I search for Postgresql
He should return a result for 'Postgresql' if i enter following values:
PostgreSQL, Postgresql, postgresql
but also
bostgresql, posdgresql, bosdgresql
Is this possible?
Regrads
michael
---------------------------(end of broadcast)---------------------------
TIP 6: explain analyze is your friend
---------------------------------
Do you Yahoo!?
Everyone is raving about the all-new Yahoo! Mail.
From | Date | Subject | |
---|---|---|---|
Next Message | Teodor Sigaev | 2006-09-28 08:03:42 | Re: Full Text fuzzy search |
Previous Message | Teodor Sigaev | 2006-09-28 07:55:48 | Re: Full Text fuzzy search |