Ticket #86: matcher-min-weight.patch
File matcher-min-weight.patch, 522 bytes (added by , 18 years ago) |
---|
-
matcher/multimatch.cc
552 553 pop_heap<vector<Xapian::Internal::MSetItem>::iterator, 553 554 MSetCmp>(items.begin(), items.end(), mcmp); 554 555 items.pop_back(); 555 if (sort_by == REL || sort_by == REL_VAL) {556 if (sort_by == VAL || sort_by == VAL_REL) { 556 557 Xapian::weight tmp = min_item.wt; 557 558 min_item = items.front(); 558 559 min_item.wt = tmp;