PhpDig.net

Go Back   PhpDig.net > PhpDig Forums > Troubleshooting

Reply
 
Thread Tools
Old 07-28-2004, 03:44 PM   #1
vinyl-junkie
Purple Mole
 
Join Date: Jan 2004
Posts: 694
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?
vinyl-junkie is offline   Reply With Quote
Old 07-28-2004, 05:03 PM   #2
Charter
Head Mole
 
Charter's Avatar
 
Join Date: May 2003
Posts: 2,539
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.
__________________
Responses are offered on a voluntary if/as time is available basis, no guarantees. Double posting or bumping threads will not get your question answered any faster. No support via PM or email, responses not guaranteed. Thank you for your comprehension.
Charter is offline   Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
search.php suddenly stops parsing during "extract vars" jackmoring Troubleshooting 1 08-25-2006 12:27 PM
shows blank page if "Search All" and "exact phrase", timeout? alokjain9 Troubleshooting 2 03-07-2006 08:08 AM
Re-indexing a page, "boosting" pages Kozz How-to Forum 2 04-06-2005 02:32 PM
"search depth" and "links per" features laurentxav How-to Forum 1 01-12-2005 08:27 PM


All times are GMT -8. The time now is 03:53 PM.


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