Changeset 1909


Ignore:
Timestamp:
2001-02-07T11:50:40+13:00 (23 years ago)
Author:
kjm18
Message:

in configure, the gdbm_level of the mgppsearchptr is set to Section if
"Section" appears in the "levels" line of collect.cfg

File:
1 edited

Legend:

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

    r1835 r1909  
    9898
    9999    while (here != end) {
    100       if (!(*here).empty())
     100      if (!(*here).empty()) {
    101101    filterOptions["Level"].validValues.push_back(*here);
     102    if ((*here) == "Section") {
     103      text_t sect = "Section";
     104      ((mgppsearchclass *)mgsearchptr)->set_gdbm_level(sect);
     105    }
     106
     107      }
    102108      here++;
    103109    }
     110   
    104111  }
    105112}
     
    252259  parse_query_params (request, queryfilterparams, startresults,
    253260              endresults, phrasematch, logout); 
    254  
    255   vector<queryparamclass>::const_iterator query_here = queryfilterparams.begin();
     261
     262    vector<queryparamclass>::const_iterator query_here = queryfilterparams.begin();
    256263   
    257264  // do query
     
    307314    queryresultsclass thisqueryresults;
    308315    text_t indx((*query_here).index);
    309      if (!mgsearchptr->search((*query_here), thisqueryresults)) {
     316    if (!mgsearchptr->search((*query_here), thisqueryresults)) {
    310317      // most likely a system problem
    311318      logout << text_t2ascii
Note: See TracChangeset for help on using the changeset viewer.