blueman378 Posted April 30, 2008 Share Posted April 30, 2008 hi guys, well as the title says im building a php search engine, but thats easy what im wanting to do tho is have the google stlye suggestions, ive found a few functions like levenshtein but i dont want to have to pull all the results out of the database to run it, so the most promising is SOUNDEX() but im wandering does anyone have any better functions they can suggest Link to comment https://forums.phpfreaks.com/topic/103510-building-a-php-search-engine-google-stlye-sugestions/ Share on other sites More sharing options...
Fadion Posted April 30, 2008 Share Posted April 30, 2008 My god! Until i checked it at php.net, i thought u re kidding about a levenshtein() function. Pretty weird, but ive never worked on a "smart" search engine, so its normal . Sorry for the offtopic and good luck. Link to comment https://forums.phpfreaks.com/topic/103510-building-a-php-search-engine-google-stlye-sugestions/#findComment-530003 Share on other sites More sharing options...
blueman378 Posted April 30, 2008 Author Share Posted April 30, 2008 dont worry i thought the same thing till i did it lol, i was googling and found that function and im jsut like what the? that cant be right but it acctually is, but yeah it will be interesting to see what people suggest for it, as soundex seems like a long way to go Link to comment https://forums.phpfreaks.com/topic/103510-building-a-php-search-engine-google-stlye-sugestions/#findComment-530061 Share on other sites More sharing options...
trq Posted April 30, 2008 Share Posted April 30, 2008 Last time I had to do something similar for a client I found this article on phpriot() a great resource. Link to comment https://forums.phpfreaks.com/topic/103510-building-a-php-search-engine-google-stlye-sugestions/#findComment-530076 Share on other sites More sharing options...
blueman378 Posted April 30, 2008 Author Share Posted April 30, 2008 hmm i jsut realised i explained myself wrong, i had no idea google acctually had a suggestion thing like that, i more meant: Did you mean: closest search query sorry about the confusion, although i might think of implementing that ither feature later for now im jsut looking for something like this, oh yeah i dont want to have a entire table full of alternate spellings cheers Link to comment https://forums.phpfreaks.com/topic/103510-building-a-php-search-engine-google-stlye-sugestions/#findComment-530082 Share on other sites More sharing options...
trq Posted April 30, 2008 Share Posted April 30, 2008 Then its likely you'll find mysql's SOUNDS LIKE operator usefull. Link to comment https://forums.phpfreaks.com/topic/103510-building-a-php-search-engine-google-stlye-sugestions/#findComment-530085 Share on other sites More sharing options...
blueman378 Posted April 30, 2008 Author Share Posted April 30, 2008 yeah same as soundex(), so im guessing thats the most efficient way of doing it? Link to comment https://forums.phpfreaks.com/topic/103510-building-a-php-search-engine-google-stlye-sugestions/#findComment-530092 Share on other sites More sharing options...
trq Posted April 30, 2008 Share Posted April 30, 2008 so im guessing thats the most efficient way of doing it? Using mysql yes. Not php. Link to comment https://forums.phpfreaks.com/topic/103510-building-a-php-search-engine-google-stlye-sugestions/#findComment-530122 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.