Changeset 8025


Ignore:
Timestamp:
2004-08-23T23:11:04+12:00 (20 years ago)
Author:
davidb
Message:

Change of mg* field and member functions to text* to better reflect
what they represent.

Location:
trunk/gsdl/src/colservr
Files:
4 edited

Legend:

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

    r4774 r8025  
    3232mggdbmsourceclass::mggdbmsourceclass () {
    3333  gdbmptr = NULL;
    34   mgsearchptr = NULL;
     34  textsearchptr = NULL;
    3535}
    3636
    3737mggdbmsourceclass::~mggdbmsourceclass () {
    3838  if (gdbmptr != NULL) delete gdbmptr;
    39   if (mgsearchptr != NULL) delete mgsearchptr;
     39  if (textsearchptr != NULL) delete textsearchptr;
    4040}
    4141
     
    345345   
    346346    // set the collection directory
    347     mgsearchptr->setcollectdir (collectdir);
     347    textsearchptr->setcollectdir (collectdir);
    348348   
    349349    // get the text
    350     mgsearchptr->docTargetDocument(defaultindex, defaultsubcollection,
     350    textsearchptr->docTargetDocument(defaultindex, defaultsubcollection,
    351351                   defaultlanguage, collection, docnum, doc);
    352352  }
  • trunk/gsdl/src/colservr/mggdbmsource.h

    r4774 r8025  
    6060  gdbmclass *gdbmptr;
    6161 
    62   searchclass *mgsearchptr;
     62  searchclass *textsearchptr;
    6363
    6464public:
     
    6969  void set_gdbmptr (gdbmclass *thegdbmptr) {gdbmptr=thegdbmptr;}
    7070
    71   // the mgsearchptr remains the responsability of the calling code
    72   void set_mgsearchptr (searchclass *themgsearchptr) {mgsearchptr=themgsearchptr;}
     71  // the textsearchptr remains the responsability of the calling code
     72  void set_textsearchptr (searchclass *thetextsearchptr) {textsearchptr=thetextsearchptr;}
    7373
    7474  void configure (const text_t &key, const text_tarray &cfgline);
  • trunk/gsdl/src/colservr/mgppqueryfilter.cpp

    r4808 r8025  
    108108    }
    109109  } else if (key == "textlevel") {
    110       ((mgppsearchclass *)mgsearchptr)->set_gdbm_level( cfgline[0]);
     110      ((mgppsearchclass *)textsearchptr)->set_gdbm_level( cfgline[0]);
    111111  }
    112112 
     
    130130    return;
    131131  }
    132   if (mgsearchptr == NULL) {
     132  if (textsearchptr == NULL) {
    133133    // most likely a configuration problem
    134134    logout << text_t2ascii
    135        << "configuration error: queryfilter contains a null mgppsearchclass\n\n";
     135       << "configuration error: queryfilter contains a null textsearchclass for mgpp\n\n";
    136136    err = configurationError;
    137137    return;
     
    267267 
    268268  int numDocs = endresults-startresults;
    269   mgsearchptr->setcollectdir (collectdir);
    270 
    271   if (!((mgppsearchclass*)mgsearchptr)->browse_search((*query_here), startresults, numDocs, queryresults)) {
     269  textsearchptr->setcollectdir (collectdir);
     270
     271  if (!((mgppsearchclass*)textsearchptr)->browse_search((*query_here), startresults, numDocs, queryresults)) {
    272272    // most likely a system problem
    273273    logout << text_t2ascii
     
    306306
    307307  err = noError;
    308   mgsearchptr->setcollectdir (collectdir);
     308  textsearchptr->setcollectdir (collectdir);
    309309  multiresults.clear();
    310310 
     
    314314    queryresultsclass thisqueryresults;
    315315    text_t indx((*query_here).index);
    316     if (!mgsearchptr->search((*query_here), thisqueryresults)) {
     316    if (!textsearchptr->search((*query_here), thisqueryresults)) {
    317317      // most likely a system problem
    318318      logout << text_t2ascii
  • trunk/gsdl/src/colservr/phrasequeryfilter.cpp

    r1321 r8025  
    4747    while (docs_here != docs_end) {
    4848      if ((*docs_here).second.num_query_terms_matched == queryresults.orgterms.size() &&
    49       OID_phrase_search (*(mgsearchclass *)mgsearchptr, *gdbmptr, queryparams.index,
     49      OID_phrase_search (*(mgsearchclass *)textsearchptr, *gdbmptr, queryparams.index,
    5050                 queryparams.subcollection, queryparams.language,
    5151                 longindex, queryparams.collection, queryresults.orgterms,
Note: See TracChangeset for help on using the changeset viewer.