Ignore:
Timestamp:
2006-07-24T02:57:51+12:00 (18 years ago)
Author:
sjboddie
Message:

Added "Sort Field" (sf) argument that can be passed through to a lucene
collection to sort search results by a metadata field.

File:
1 edited

Legend:

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

    r9620 r12276  
    4747  maxdocs = -1;    // all
    4848  maxnumeric = 4;  // must default to the same value as mg_passes
     49  sortfield.clear();
    4950}
    5051
     
    6465  maxdocs = q.maxdocs;
    6566  maxnumeric = q.maxnumeric;
     67  sortfield = q.sortfield;
    6668
    6769  return *this;
     
    8284      (x.stemming == y.stemming) &&
    8385      (x.maxdocs == y.maxdocs) &&
    84       (x.maxnumeric == y.maxnumeric));
     86      (x.maxnumeric == y.maxnumeric) &&
     87          (x.sortfield == y.sortfield));
    8588}
    8689
     
    107110  outs << " maxdocs = \"" << q.maxdocs << "\"\n";
    108111  outs << " maxnumeric = \"" << q.maxnumeric << "\"\n";
     112  outs << " sortfield = \"" << q.sortfield << "\"\n";
    109113  outs << "\n";
    110114
Note: See TracChangeset for help on using the changeset viewer.