|
Posted by Michelle Konzack on 12/09/05 13:30
Thanks,
I will try it out...
Am 2005-12-07 09:41:20, schrieb Brent Baisley:
> Here is some code that you can modify. It's design to convert a
> search string into a MySQL full text search string, not sure how
> different pgsql is. It adds * for word expansion where appropriate.
> It assume a space is the delimiter, but that's easy to change in the
> explode statement.
>
> Example:
> "this is a search" -XXX Test
>
> becomes
>
> +"this is a search" -XXX* +Test*
>
> Conversion function:
<snip>
--
Linux-User #280138 with the Linux Counter, http://counter.li.org/
##################### Debian GNU/Linux Consultant #####################
Michelle Konzack Apt. 917 ICQ #328449886
50, rue de Soultz MSM LinuxMichi
0033/3/88452356 67100 Strasbourg/France IRC #Debian (irc.icq.com)
[Back to original message]
|