summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLester Caine <lester@lsces.co.uk>2006-10-21 20:21:52 +0000
committerLester Caine <lester@lsces.co.uk>2006-10-21 20:21:52 +0000
commitd6039b3a7ca9081049c279bc788034fac43a6b49 (patch)
treeb47f9f0a2c4671b3f3bd0c1873bf2b5022c93a9a
parent5f0523a423193fe444443eabfa88ab78a02ff088 (diff)
downloadsearch-d6039b3a7ca9081049c279bc788034fac43a6b49.tar.gz
search-d6039b3a7ca9081049c279bc788034fac43a6b49.tar.bz2
search-d6039b3a7ca9081049c279bc788034fac43a6b49.zip
Search result only works for a single word in Firebird
-rw-r--r--search_lib.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/search_lib.php b/search_lib.php
index d51dae9..a7288fc 100644
--- a/search_lib.php
+++ b/search_lib.php
@@ -1,6 +1,6 @@
<?php
/**
- * $Header: /cvsroot/bitweaver/_bit_search/search_lib.php,v 1.26 2006/09/06 08:33:23 lsces Exp $
+ * $Header: /cvsroot/bitweaver/_bit_search/search_lib.php,v 1.27 2006/10/21 20:21:52 lsces Exp $
*
* Copyright (c) 2004 bitweaver.org
* Copyright (c) 2003 tikwiki.org
@@ -8,7 +8,7 @@
* All Rights Reserved. See copyright.txt for details and a complete list of authors.
* Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See license.txt for details
*
- * $Id: search_lib.php,v 1.26 2006/09/06 08:33:23 lsces Exp $
+ * $Id: search_lib.php,v 1.27 2006/10/21 20:21:52 lsces Exp $
* @author Luis Argerich (lrargerich@yahoo.com)
* @package search
*/
@@ -196,7 +196,7 @@ class SearchLib extends BitBase {
LEFT OUTER JOIN `".BIT_DB_PREFIX."liberty_content_hits` lch ON (lc.`content_id` = lch.`content_id`)
$joinSql
WHERE (
- SELECT SUM(i_count)
+ SELECT FIRST 1 SUM(i_count)
FROM `" . BIT_DB_PREFIX . "search_index` si
WHERE si.`content_id`=lc.`content_id`
GROUP BY