|
11-04-2005, 04:49 AM | #1 |
Green Mole
Join Date: Nov 2005
Posts: 7
|
Client question: intelligent ranking
Hi,
I am evaluating whether to use phpdig for a client's website. He has asked me the following: I have heard that > some sophisticated search engines remember which sites were chosen by > users from the search lists produced in a word search and use this to > influence the "top tenness" of results. Does this tool have any of > this capability or is there a tool that does? I'd be grateful if somebody could answer this for me. I think what they are asking is - can phpDig rank results according to which searches have been the most popular? Many thanks, lukemack. |
11-06-2005, 11:19 AM | #2 |
Head Mole
Join Date: May 2003
Posts: 2,539
|
PhpDig doesn't rank based on most popular searches; it basically ranks on number of occurrences, but there is a mod here that lets you change weight per keyword to reorder search results.
__________________
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. |
11-06-2005, 11:24 AM | #3 |
Green Mole
Join Date: Nov 2005
Posts: 7
|
many thanks for your reply. do you know of a search tool which does have this functionality?
|
11-06-2005, 02:52 PM | #4 |
Head Mole
Join Date: May 2003
Posts: 2,539
|
I don't know of such a script, but you could try the following untested code with PhpDig version 1.8.8 RC1 so that word weight is bumped on each reindex according to what is in the logs table.
In robot_functions.php find: Code:
//New index record if ($it == 0) { $sqlvalues .= "($spider_id,$key_id,$value)"; $it = 1; } else { $sqlvalues .= ",\n($spider_id,$key_id,$value)"; } Code:
//New index record if ($it == 0) { $sqlvalues .= "($spider_id,$key_id,$value)"; $it = 1; } else { $weight_select = "SELECT COUNT(*) FROM ".PHPDIG_DB_PREFIX."logs WHERE l_includes = '".$key."'"; $weight_query = mysql_query($weight_select,$id_connect); $weight_bump = mysql_fetch_row($weight_query); $weightbump = intval($weight_bump[0]); $value += $weightbump; $sqlvalues .= ",\n($spider_id,$key_id,$value)"; }
__________________
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. |
11-07-2005, 04:11 AM | #5 |
Green Mole
Join Date: Nov 2005
Posts: 7
|
thanks - that sounds good but am a little reluctant to try untested code on a client site.
do you know of anyone who has tried this? |
11-07-2005, 12:40 PM | #6 |
Head Mole
Join Date: May 2003
Posts: 2,539
|
I don't know of anyone who has tried the posted mod, but if your client wants to word bump based on searches use:
Code:
$weight_select = "SELECT COUNT(*) FROM ".PHPDIG_DB_PREFIX."logs WHERE l_includes = '".$key."'"; Code:
$weight_select = "SELECT COUNT(*) FROM ".PHPDIG_DB_PREFIX."clicks WHERE c_val = '".$key."'";
__________________
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. |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Ranking for Pages in Search Result | alokjain9 | How-to Forum | 1 | 02-10-2006 06:25 AM |
page ranking system | noel | The Mole Hole | 1 | 11-16-2005 06:15 PM |
Client IP address | griffinmt | Coding & Tutorials | 3 | 05-23-2004 11:30 AM |
Reduce duplicates in keywords table through more intelligent indexing | jerrywin5 | Mod Requests | 1 | 04-20-2004 09:06 AM |
Test-Search for (little) Intelligent Php-Dig Fuzzy | Rolandks | Feedback & News | 3 | 10-30-2003 01:21 AM |