Ignore:
Timestamp:
2003-11-14T15:25:42+13:00 (21 years ago)
Author:
kjdon
Message:

now this only sorts the query results if a ranked search was done, or if there were phrases in the query

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/src/colservr/mgqueryfilter.cpp

    r4735 r5850  
    342342  if (need_matching_docs (request.filterResultOptions)) {
    343343    // sort the query results
    344     sort_doc_results (request, queryresults.docs);
    345    
     344    // only want to sort the docs if we have done a ranked search or there were phrases
     345    if (num_phrases > 0 || (request.filterResultOptions & FRranking)) {
     346      sort_doc_results (request, queryresults.docs);
     347    }
    346348    int resultnum = 1;
    347349    ResultDocInfo_t resultdoc;
Note: See TracChangeset for help on using the changeset viewer.