Changeset 327 for trunk/gsdl/src/colservr
- Timestamp:
- 1999-07-01T15:59:54+12:00 (25 years ago)
- Location:
- trunk/gsdl/src/colservr
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl/src/colservr/queryfilter.cpp
r319 r327 12 12 /* 13 13 $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 14 18 Revision 1.7 1999/06/30 04:04:13 rjmcnab 15 19 made stemming functions available from mgsearch and made the stems … … 43 47 #include "queryinfo.h" 44 48 45 #define MAXDOCS 500 // note that maxdocs must be at least as large49 #define MAXDOCS 200 // note that maxdocs must be at least as large 46 50 // as the highest possible value of EndResults 47 51 … … 63 67 trans_OID = info["section"]; 64 68 return true; 69 } 70 71 72 // do aditional query processing 73 void queryfilterclass::post_process (const queryparamclass &/*queryparams*/, const text_t &/*index*/, 74 queryresultsclass &/*queryresults*/) { 65 75 } 66 76 … … 311 321 if ((request.filterResultOptions & FROID) || (request.filterResultOptions & FRranking) || 312 322 (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 313 331 int resultnum = 1; 314 332 ResultDocInfo_t resultdoc; -
trunk/gsdl/src/colservr/queryfilter.h
r227 r327 35 35 mgsearchclass *mgsearchptr; 36 36 37 // do aditional query processing 38 virtual void post_process (const queryparamclass &queryparams, const text_t &index, 39 queryresultsclass &queryresults); 40 37 41 public: 38 42 queryfilterclass ();
Note:
See TracChangeset
for help on using the changeset viewer.