Changeset 27062

Show
Ignore:
Timestamp:
12.03.2013 14:35:42 (7 years ago)
Author:
kjdon
Message:

sortoder added to query params for lucene

Location:
main/trunk/greenstone2/runtime-src/src/colservr
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone2/runtime-src/src/colservr/queryinfo.cpp

    r16947 r27062  
    5151  sortfield.clear(); 
    5252  fuzziness.clear(); 
     53  sortorder = 0; // 0 = ascending, 1 = descending 
    5354  startresults = 1; // all 
    5455  endresults = 10; // all 
     
    7475  sortfield = q.sortfield; 
    7576  fuzziness = q.fuzziness; 
     77  sortorder = q.sortorder; 
    7678  startresults = q.startresults; 
    7779  endresults = q.endresults; 
     
    98100          (x.sortfield == y.sortfield) && 
    99101          (x.fuzziness == y.fuzziness) && 
     102      (x.sortorder == y.sortorder) && 
    100103          (x.startresults == y.startresults) && 
    101104          (x.startresults == y.startresults)); 
     
    128131  outs << " sortfield = \"" << q.sortfield << "\"\n"; 
    129132  outs << " fuzziness = \"" << q.fuzziness << "\"\n"; 
     133  outs << " sortorder = \"" << q.sortorder << "\"\n"; 
    130134  outs << " startresults = \"" << q.startresults << "\"\n"; 
    131135  outs << " endresults = \"" << q.endresults << "\"\n"; 
  • main/trunk/greenstone2/runtime-src/src/colservr/queryinfo.h

    r16947 r27062  
    6969  text_t filterstring; // Filter specified (currently only used by Lucene) 
    7070  text_t sortfield; // Field to use for sorting result set (currently used by lucene) 
     71  int sortorder; // 0 = ascending, 1 = descending (only used by Lucene) 
    7172  text_t fuzziness; // Search fuzziness amount between 0.0 and 1.0 (only used by Lucene) 
    72  
    7373  int startresults; 
    7474  int endresults;