[KinoSearch] Typos in queries

Peter Karman peter at peknet.com
Thu May 22 06:16:32 PDT 2008



On 05/22/2008 01:44 AM, Nathan Kurz wrote:

> I would recommend an easier solution:  use an existing spell checker
> like Text::Aspell to 'suggest' spelling corrections, and then
> construct a query with these suggestions as part of a weighted Boolean
> query.  If I recall correctly, you have to hack libaspell if you want
> it to return the distance, but otherwise this should work well.

Look too at Search::Tools::Spellcheck which wraps Text::Aspell especially for search apps.
IIRC, libaspell allows you too also build custom dictionaries if your corpus requires it.

-- 
Peter Karman  .  peter at peknet.com  .  http://peknet.com/




More information about the KinoSearch mailing list