String comparison in weblog
2003-06-16 12:05:13
I've just added a little script to the one that does the search by title (aka permalink). So far if the title didnt exist in the database an error message was thrown. Now there's another step, so if it doesnt exist, we do a string comparison and order the results by coincidence percentages, provided they are greater than 50%. Thus, for instance, if you look for a post about Peter Gabriel but mistype it, you wont access directly but be shown a page with a list to select the most likely entry. Thanx Dan for helping me with some arrays problems. If you want more info on this technique post a comment on this entry.