From 235cf363efd81b043d7079bfc2d9a78993df404d Mon Sep 17 00:00:00 2001 From: Andreas Gohr Date: Wed, 18 Jul 2007 12:48:39 +0200 Subject: fix for phrase search FS#1189 darcs-hash:20070718104839-7ad00-50348c1834c78e891f049023d2e8894d6bb0a00b.gz --- inc/fulltext.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'inc/fulltext.php') 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); } -- cgit v1.2.3