From ad0d715fcb3fa54d151ae5719079c19439fff27d Mon Sep 17 00:00:00 2001 From: Conrad Vermeulen Date: Fri, 28 Sep 2007 12:41:27 +0000 Subject: [PATCH] KTS-673 "The search algorithm needs some work" Updated. When quotes are detected in a text search, the subexpressions where OR'd. They should be ANDed. --- search2/search/expr.inc.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/search2/search/expr.inc.php b/search2/search/expr.inc.php index 76f84b7..fd26ed9 100755 --- a/search2/search/expr.inc.php +++ b/search2/search/expr.inc.php @@ -1540,11 +1540,11 @@ class OpExpr extends Expr else { $join = new OpExpr($doctext, $op, new ValueExpr($text[$i])); - $right = new OpExpr($join, ExprOp::OP_OR, $right); + $right = new OpExpr($join, ExprOp::OP_AND, $right); } } - $op = ExprOp::OP_OR; + $op = ExprOp::OP_AND; } -- libgit2 0.21.4