PDA

View Full Version : Weird Messages on "no results" pages


vinyl-junkie
07-28-2004, 02:44 PM
I noticed a couple of really strange messages on "no results" pages. For example, search term "a star in the ghetto" produced the following message:No results. alt_try 10 star an te cheat? I figured out where "alt_try" was and changed that to "Did you mean" (which incidentally can be found in search_function.php). However, I haven't been able to figure out where it comes up with "10 star an te cheat." Seems like a weird alternate search term. Where does that come from?

Incidentally, I'm pretty sure I know why there were zero results on the above. The words "a" "in" and "the" are probably considered common words, and phpdig doesn't search on them. That's not a problem.

Here's another example of the weird alternate search. Search term "B W Stevenson" yields the following results message:No results. Did you mean b. 10 stephenson? Why the number 10 in the alternate search term?

Charter
07-28-2004, 04:03 PM
Hi. The alt_try should not have shown with the latest language pack so just FTP over the version 1.8.3 pack. If you look for SOUNDEX in the search_function.php file, you'll see how alternative search choices are generated. Basically, the code tries to offer similar words or phrases using the keywords table.