Ignore:
Timestamp:
1999-07-01T15:59:54+12:00 (25 years ago)
Author:
rjmcnab
Message:

reduced MAXDOCS to 200 (more reasonable ???). I also added a virtual
method for post-processing the query.

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

Legend:

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

    r319 r327  
    1212/*
    1313   $Log$
     14   Revision 1.8  1999/07/01 03:59:54  rjmcnab
     15   reduced MAXDOCS to 200 (more reasonable ???). I also added a virtual
     16   method for post-processing the query.
     17
    1418   Revision 1.7  1999/06/30 04:04:13  rjmcnab
    1519   made stemming functions available from mgsearch and made the stems
     
    4347#include "queryinfo.h"
    4448
    45 #define MAXDOCS 500 // note that maxdocs must be at least as large
     49#define MAXDOCS 200 // note that maxdocs must be at least as large
    4650                    // as the highest possible value of EndResults
    4751
     
    6367  trans_OID = info["section"];
    6468  return true;
     69}
     70
     71
     72// do aditional query processing
     73void queryfilterclass::post_process (const queryparamclass &/*queryparams*/, const text_t &/*index*/,
     74                     queryresultsclass &/*queryresults*/) {
    6575}
    6676
     
    311321  if ((request.filterResultOptions & FROID) || (request.filterResultOptions & FRranking) ||
    312322      (request.filterResultOptions & FRmetadata)) {
     323
     324    // post-process the results if needed
     325    if (!queryresults.postprocessed && queryresults.orgterms.size() > 1 &&
     326    !queryresults.docs.empty()) {
     327      post_process (queryparams, index, queryresults);
     328      queryresults.postprocessed = true;
     329    }
     330 
    313331    int resultnum = 1;
    314332    ResultDocInfo_t resultdoc;
  • trunk/gsdl/src/colservr/queryfilter.h

    r227 r327  
    3535  mgsearchclass *mgsearchptr;
    3636
     37  // do aditional query processing
     38  virtual void post_process (const queryparamclass &queryparams, const text_t &index,
     39                 queryresultsclass &queryresults);
     40 
    3741public:
    3842  queryfilterclass ();
Note: See TracChangeset for help on using the changeset viewer.