ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> php-general
php-general
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

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved