diff options
author | Angie Byron <webchick@24967.no-reply.drupal.org> | 2008-11-10 05:19:50 +0000 |
---|---|---|
committer | Angie Byron <webchick@24967.no-reply.drupal.org> | 2008-11-10 05:19:50 +0000 |
commit | 9020a9a20130ac2712f2a7406ee34ed9c39064d1 (patch) | |
tree | 02a3f0ec6900c9bfd08319f817d6d8a26d465794 /modules/node/node.module | |
parent | 0aeda0f143a2f35333ee31f0fa6058fd13e45305 (diff) | |
download | brdo-9020a9a20130ac2712f2a7406ee34ed9c39064d1.tar.gz brdo-9020a9a20130ac2712f2a7406ee34ed9c39064d1.tar.bz2 |
#331719 follow-up by chx: Remove ambiguity from search score queries.
Diffstat (limited to 'modules/node/node.module')
-rw-r--r-- | modules/node/node.module | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/node/node.module b/modules/node/node.module index 7c8763cd3..8c8ecd48a 100644 --- a/modules/node/node.module +++ b/modules/node/node.module @@ -1333,13 +1333,13 @@ function node_search($op = 'search', $keys = NULL) { $total = 1; $arguments2 = array(); $join2 = ''; - $select2 = 'i.relevance AS score'; + $select2 = 'i.relevance AS calculated_score'; } else { $total = $rankings['total']; $arguments2 = $rankings['arguments']; $join2 = implode(' ', $rankings['join']); - $select2 = '('. implode(' + ', $rankings['score']) .') AS score'; + $select2 = '('. implode(' + ', $rankings['score']) .') AS calculated_score'; } // Do search. @@ -1369,7 +1369,7 @@ function node_search($op = 'search', $keys = NULL) { 'date' => $node->changed, 'node' => $node, 'extra' => $extra, - 'score' => $total ? ($item->score / $total) : 0, + 'score' => $total ? ($item->calculated_score / $total) : 0, 'snippet' => search_excerpt($keys, $node->body), ); } |