summaryrefslogtreecommitdiff
path: root/modules/search/controllers
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2011-03-27 13:16:41 -0700
committerBharat Mediratta <bharat@menalto.com>2011-03-27 13:16:41 -0700
commit7f62f09cf377b92b615e456ec4539300b331fd4b (patch)
tree5719e8480f3113c3907c431b2566dc0e48e9ece9 /modules/search/controllers
parent87ce71eb90588a443c05a6b7e378aca8d0e7b3b3 (diff)
Improve search to use wildcard matching, thanks to some code from tempg.
Fixes #1663.
Diffstat (limited to 'modules/search/controllers')
-rw-r--r--modules/search/controllers/search.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/search/controllers/search.php b/modules/search/controllers/search.php
index eef009a0..75cbaa29 100644
--- a/modules/search/controllers/search.php
+++ b/modules/search/controllers/search.php
@@ -29,7 +29,8 @@ class Search_Controller extends Controller {
$page = 1;
}
- list ($count, $result) = search::search($q, $page_size, $offset);
+ $q_with_more_terms = search::add_query_terms($q);
+ list ($count, $result) = search::search($q_with_more_terms, $page_size, $offset);
$max_pages = max(ceil($count / $page_size), 1);