Re: [PHP] How to account for misspellings and alternatives in searching?
by Robin Vickery other posts by this author
Oct 28 2005 1:59AM messages near this date
[PHP] How to account for misspellings and alternatives in searching?
|
[PHP] Re: How to account for misspellings and alternatives in searching?
On 10/27/05, Chris W. Parker <cparker@[...].com> wrote:
> Hello,
>
> On my site right now if someone searches for "511" (a misspelling of the
> manufacturer 5.11) they are not presented with the right products
> because 511 is not found anywhere in the database.
>
> I've got a few ideas on how to solve this but I want to find one that
> requires as little administrative overhead as possible.
You could use the pspell extension; add your manufacturers to your
personal word-list and use pspell_check() to check the spelling and
pspell_suggest() to suggest alternatives.
http://www.php.net/manual/en/ref.pspell.php
-robin
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Thread:
Chris W. Parker
Robin Vickery
James Benson
Jochem Maas
|