Changeset 273 for trunk/gsdl/src/colservr/queryfilter.cpp
- Timestamp:
- 1999-06-16T14:03:25+12:00 (25 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl/src/colservr/queryfilter.cpp
r238 r273 12 12 /* 13 13 $Log$ 14 Revision 1.4 1999/06/16 02:03:25 sjboddie 15 fixed bug in isApprox and set MAXDOCS to always be 500 16 14 17 Revision 1.3 1999/04/19 23:56:09 rjmcnab 15 18 Finished the gdbm metadata stuff … … 28 31 #include "queryinfo.h" 29 32 33 #define MAXDOCS 500 // note that maxdocs must be at least as large 34 // as the highest possible value of EndResults 30 35 31 36 // some useful functions … … 192 197 193 198 void queryfilterclass::filter (const FilterRequest_t &request, 194 195 199 FilterResponse_t &response, 200 comerror_t &err, ostream &logout) { 196 201 outconvertclass text_t2ascii; 197 202 … … 269 274 270 275 queryparams.search_index = index+subcollection+language; 271 queryparams.maxdocs = (endresults > 100) ? endresults : 100;276 queryparams.maxdocs = MAXDOCS; 272 277 273 278 // do query … … 343 348 344 349 response.numDocs = queryresults.getnumdocs(); 345 response.isApprox = (queryresults.getnumdocs() != queryparams.maxdocs);346 } 350 response.isApprox = (queryresults.getnumdocs() == queryparams.maxdocs); 351 }
Note:
See TracChangeset
for help on using the changeset viewer.