Displaying 1 result from an estimated 1 matches for "simplify_query".
2006 Dec 06
1
Bug and patch for +terms with wildcards
...left hand side is MATCH_NOTHING, we match nothing.
+ // If right hand side is MATCH_NOTHING, replace node with LHS.
+ // So, if either node is MATCH_NOTHING, replace node with LHS.
+ // Easiest way to do this is to remove the right hand node,
+ // and let simplify_query() perform the replacement of
+ // the unary operator with
+ Assert(subqs.size() == 2);
+ if (subqs[0]->op == OP_MATCH_NOTHING ||
+ subqs[1]->op == OP_MATCH_NOTHING) {
+ sq = subqs.begin();
+ sq++;
+...