Ticket #234: xapian_omega_add_option_filter_defaultop.diff
File xapian_omega_add_option_filter_defaultop.diff, 610 bytes (added by , 16 years ago) |
---|
-
query.cc
old new 322 322 case 1: 323 323 filter_vec.push_back(Xapian::Query(or_vec[0])); 324 324 break; 325 default: 326 filter_vec.push_back(Xapian::Query(Xapian::Query::OP_OR, 325 default: { 326 Xapian::Query::op op = Xapian::Query::OP_OR; 327 if (option[string("filter_defaultop,")+current] == "AND") op = Xapian::Query::OP_AND; 328 filter_vec.push_back(Xapian::Query(op, 327 329 or_vec.begin(), 328 330 or_vec.end())); 329 331 break; 332 } 330 333 } 331 334 or_vec.clear(); 332 335 if (over) break;