Changeset 2619


Ignore:
Timestamp:
2001-07-02T17:19:35+12:00 (23 years ago)
Author:
dmm9
Message:

bug fix for the filtering out of unwanted docs.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/src/recpt/browseactiontools.cpp

    r2612 r2619  
    9999                outconvertclass outconvert)
    100100{
     101 
    101102  ResultDocInfo_tarray::iterator check = response.docInfo.begin();
    102103  ResultDocInfo_tarray::iterator done = response.docInfo.end();
    103 
     104  cout<<"set iterators"<<endl;
    104105  // look through all the returned documents
    105   while(check != done){
     106  while(check != response.docInfo.end()){
     107    cout<<"in check loop"<<" end:"<<response.docInfo.end()<<endl;
     108   
    106109    //if the document doesn't have the metadata item classified on
    107110    //remove it.
    108     if(*((*check).metadata.find(metaname)->second).values.begin()=="")
     111    cout<<"getting title"<<endl;
     112    text_t title = *((*check).metadata.find(metaname)->second).values.begin();
     113    cout<<"got title"<<endl;
     114    if(title == "")
    109115      {
    110     check = response.docInfo.erase(check);
     116   
     117    response.docInfo.erase(check);
     118   
    111119      }
    112120    else {
    113        check ++;
     121     
     122      check ++;
     123     
    114124    }
    115   
     125 
    116126  }
    117127  return true;
Note: See TracChangeset for help on using the changeset viewer.