diff options
author | Andreas Gohr <andi@splitbrain.org> | 2007-07-18 12:48:39 +0200 |
---|---|---|
committer | Andreas Gohr <andi@splitbrain.org> | 2007-07-18 12:48:39 +0200 |
commit | 235cf363efd81b043d7079bfc2d9a78993df404d (patch) | |
tree | 4c5434dde2e595b41d96a7618c3eb3270a4cb44e | |
parent | 77707b043432567e97185f0d28318f8b85344449 (diff) | |
download | rpg-235cf363efd81b043d7079bfc2d9a78993df404d.tar.gz rpg-235cf363efd81b043d7079bfc2d9a78993df404d.tar.bz2 |
fix for phrase search FS#1189
darcs-hash:20070718104839-7ad00-50348c1834c78e891f049023d2e8894d6bb0a00b.gz
-rw-r--r-- | inc/fulltext.php | 2 |
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); } |