Changeset 8026


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

Shift from mg* fields and member functions to text* to better reflect
what they are used for.

File:
1 edited

Legend:

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

    r5850 r8026  
    166166    docresultmap::iterator docs_end = queryresults.docs.docset.end();
    167167    while (docs_here != docs_end) {
    168       if (OID_phrase_search (*((mgsearchclass*)mgsearchptr), *gdbmptr, queryparams.index,
     168      if (OID_phrase_search (*((mgsearchclass*)textsearchptr), *gdbmptr, queryparams.index,
    169169                 queryparams.subcollection, queryparams.language,
    170170                 longindex, queryparams.collection, *this_phrase,
     
    191191
    192192  err = noError;
    193   mgsearchptr->setcollectdir (collectdir);
     193  textsearchptr->setcollectdir (collectdir);
    194194  multiresults.clear();
    195195 
     
    199199    queryresultsclass thisqueryresults;
    200200
    201     if (!mgsearchptr->search(*query_here, thisqueryresults)) {
     201    if (!textsearchptr->search(*query_here, thisqueryresults)) {
    202202      // most likely a system problem
    203203      logout << text_t2ascii
     
    301301    return;
    302302  }
    303   if (mgsearchptr == NULL) {
     303  if (textsearchptr == NULL) {
    304304    // most likely a configuration problem
    305305    logout << text_t2ascii
    306        << "configuration error: mgqueryfilter contains a null mgsearchclass\n\n";
     306       << "configuration error: mgqueryfilter contains a null textsearchclass (mg)\n\n";
    307307    err = configurationError;
    308308    return;
Note: See TracChangeset for help on using the changeset viewer.