Ticket #86: matcher-min-weight.patch

File matcher-min-weight.patch, 522 bytes (added by Olly Betts, 18 years ago)

Patch to fix incorrect part of fix for bug#110

  • matcher/multimatch.cc

     
    552553                pop_heap<vector<Xapian::Internal::MSetItem>::iterator,
    553554                         MSetCmp>(items.begin(), items.end(), mcmp);
    554555                items.pop_back();
    555                 if (sort_by == REL || sort_by == REL_VAL) {
     556                if (sort_by == VAL || sort_by == VAL_REL) {
    556557                    Xapian::weight tmp = min_item.wt;
    557558                    min_item = items.front();
    558559                    min_item.wt = tmp;