PhpDig.net

PhpDig.net (http://www.phpdig.net/forum/index.php)
-   Troubleshooting (http://www.phpdig.net/forum/forumdisplay.php?f=22)
-   -   Weird Messages on "no results" pages (http://www.phpdig.net/forum/showthread.php?t=1134)

vinyl-junkie 07-28-2004 02:44 PM

Weird Messages on "no results" pages
 
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:
Quote:

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:
Quote:

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.


All times are GMT -8. The time now is 12:15 AM.

Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright © 2001 - 2005, ThinkDing LLC. All Rights Reserved.