summaryrefslogtreecommitdiff
path: root/inc/fulltext.php
diff options
context:
space:
mode:
authorAndreas Gohr <andi@splitbrain.org>2007-07-18 12:48:39 +0200
committerAndreas Gohr <andi@splitbrain.org>2007-07-18 12:48:39 +0200
commit235cf363efd81b043d7079bfc2d9a78993df404d (patch)
tree4c5434dde2e595b41d96a7618c3eb3270a4cb44e /inc/fulltext.php
parent77707b043432567e97185f0d28318f8b85344449 (diff)
downloadrpg-235cf363efd81b043d7079bfc2d9a78993df404d.tar.gz
rpg-235cf363efd81b043d7079bfc2d9a78993df404d.tar.bz2
fix for phrase search FS#1189
darcs-hash:20070718104839-7ad00-50348c1834c78e891f049023d2e8894d6bb0a00b.gz
Diffstat (limited to 'inc/fulltext.php')
-rw-r--r--inc/fulltext.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/inc/fulltext.php b/inc/fulltext.php
index 7cb1153fb..f7a9320c9 100644
--- a/inc/fulltext.php
+++ b/inc/fulltext.php
@@ -324,7 +324,7 @@ function ft_queryParser($query){
// handle phrase searches
while(preg_match('/"(.*?)"/',$query,$match)){
$q['phrases'][] = $match[1];
- $q['and'] = array_merge(idx_tokenizer($match[0],$stopwords));
+ $q['and'] = array_merge($q['and'], idx_tokenizer($match[0],$stopwords));
$query = preg_replace('/"(.*?)"/','',$query,1);
}