summaryrefslogtreecommitdiff
path: root/inc/indexer.php
diff options
context:
space:
mode:
authorOsamu Higuchi <osamu@higuchi.com>2006-01-27 00:37:02 +0100
committerOsamu Higuchi <osamu@higuchi.com>2006-01-27 00:37:02 +0100
commit63201c6e1eac162cda135b5e0da70a603af74bc1 (patch)
treef2fd9ed123643a9ecaaeb22514d68ba524d22a17 /inc/indexer.php
parentbf5d40c2ffe5ebcef76254c83a17e3955796fa0d (diff)
downloadrpg-63201c6e1eac162cda135b5e0da70a603af74bc1.tar.gz
rpg-63201c6e1eac162cda135b5e0da70a603af74bc1.tar.bz2
fixed indexer word counts for UTF-8 words #653
darcs-hash:20060126233702-87e23-9382dd77b66f263fa51ad02dc31264c667fdbc70.gz
Diffstat (limited to 'inc/indexer.php')
-rw-r--r--inc/indexer.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/inc/indexer.php b/inc/indexer.php
index 915f26938..cc2a9ebbf 100644
--- a/inc/indexer.php
+++ b/inc/indexer.php
@@ -61,7 +61,7 @@ function idx_getPageWords($page){
foreach ($arr as $w => $c) {
if (!is_numeric($w) && strlen($w) < 3) continue;
$w = utf8_strtolower($w);
- $words[$w] = $c + (isset($words[$w]) ? $words[$w] : 0);
+ $words[$w] = $c * $count + (isset($words[$w]) ? $words[$w] : 0);
}
} else {
if (!is_numeric($word) && strlen($word) < 3) continue;