Ticket #485: orpostlist_check.patch
File orpostlist_check.patch, 876 bytes (added by , 14 years ago) |
---|
-
matcher/orpostlist.cc
221 221 bool ldry = false; 222 222 bool lvalid = false; 223 223 bool rvalid = false; 224 if (lhead < did) {224 if (lhead <= did) { 225 225 check_handling_prune(l, did, w_min - rmax, matcher, lvalid); 226 226 ldry = l->at_end(); 227 227 } 228 228 229 if (rhead < did) {229 if (rhead <= did) { 230 230 check_handling_prune(r, did, w_min - lmax, matcher, rvalid); 231 231 232 232 if (r->at_end()) { … … 236 236 RETURN(ret); 237 237 } 238 238 rhead = r->get_docid(); 239 if (!rvalid && rhead <= did) { 240 rhead = did + 1; 241 } 239 242 } 240 243 241 244 if (!ldry) { 242 245 lhead = l->get_docid(); 246 if (!lvalid && lhead <= did) { 247 lhead = did + 1; 248 } 243 249 if (lhead < rhead) { 244 250 valid = lvalid; 245 251 } else if (rhead < lhead) {