PDA

View Full Version : Search EngineSpell Checker / Offer Suggestions



junior0128
August 4th, 2006, 09:49 AM
I was wondering if someoone could help me integrate a program into a search(which searches a database) that will check the spelling of the words and either 1) correct it or 2) suggest similar words or alternate spellings.

If someone knows how to do this and is wanting some money for it, please let me know, but the free help would help a lot.

Thanks,

bwh2
August 4th, 2006, 10:01 AM
i know how to do it (and have done it on my site). basically you need to do a couple things:
1) build a search index
2) search the db for the term and use levenshtein (http://us2.php.net/levenshtein) (assuming you're using php)

junior0128
August 7th, 2006, 06:46 PM
I have a database setup already, so I would add the script to the submit "query"?

bwh2
August 7th, 2006, 07:04 PM
I have a database setup already, so I would add the script to the submit "query"?umm... sort of. i mean, it's not like a plugin though. just saying that you have a database setup doesn't mean anything really. you need to have a search index within that database.