From 030873e0fbfc15b9b98293eaa192159424d86063 Mon Sep 17 00:00:00 2001 From: Brian Quinion Date: Sat, 25 Aug 2012 20:05:05 +0100 Subject: [PATCH] reduce effect of missing world now importance is better quality --- website/search.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website/search.php b/website/search.php index 77892f23..60df370d 100755 --- a/website/search.php +++ b/website/search.php @@ -1268,7 +1268,7 @@ { if (stripos($sAddress, $sWord)!==false) $iCountWords++; } - $aResult['importance'] = $aResult['importance'] + $iCountWords; + $aResult['importance'] = $aResult['importance'] + ($iCountWords*0.1); // 0.1 is a completely arbitrary number but something in the range 0.1 to 0.5 would seem right //if (CONST_Debug) var_dump($aResult['class'].':'.$aResult['type'].':'.$aResult['admin_level']); /* -- 2.39.5