Changeset 12314
- Timestamp:
- 2006-07-28T11:40:29+12:00 (18 years ago)
- Location:
- trunk/gsdl/src/colservr
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl/src/colservr/mgppsearch.cpp
r9937 r12314 148 148 // create the mgpp query tree 149 149 QueryNode *queryTree = NULL; 150 queryTree = ParseQuery(queryArray, defaultBoolCombine, defaultStemMethod );150 queryTree = ParseQuery(queryArray, defaultBoolCombine, defaultStemMethod, queryparams.maxnumeric); 151 151 if (queryTree == NULL) { // syntax error 152 152 queryresult.syntax_error = true; -
trunk/gsdl/src/colservr/mgqueryfilter.cpp
r11002 r12314 90 90 queryfilterclass::configure (key, cfgline); 91 91 92 if (key == "maxnumeric") { 93 maxnumeric = cfgline[0].getint(); 94 } 95 else if (key == "indexstem") { 92 if (key == "indexstem") { 96 93 ((mgsearchclass *)textsearchptr)->set_indexstem (cfgline[0]); 97 94 } … … 288 285 289 286 num_phrases = 0; 290 maxnumeric = 4;291 287 } 292 288 … … 464 460 while (query_here != query_end) { 465 461 466 // set maxnumeric467 (*query_here).maxnumeric = maxnumeric;468 469 462 // if we're doing a phrase search we want to maximise hits by making it 470 463 // a boolean search on the index with the finest granularity - we'll -
trunk/gsdl/src/colservr/mgqueryfilter.h
r4193 r12314 51 51 int num_phrases; 52 52 53 int maxnumeric;54 55 53 void get_phrase_terms (const text_t &querystring, 56 54 const termfreqclassarray &orgterms, -
trunk/gsdl/src/colservr/queryfilter.cpp
r12276 r12314 91 91 query.level = filterOptions["Level"].defaultValue; 92 92 query.sortfield = filterOptions["SortField"].defaultValue; 93 query.maxnumeric = maxnumeric; 93 94 OptionValue_tarray::const_iterator options_here = request.filterOptions.begin(); 94 95 OptionValue_tarray::const_iterator options_end = request.filterOptions.end(); … … 117 118 query.level = filterOptions["Level"].defaultValue; 118 119 query.sortfield = filterOptions["SortField"].defaultValue; 120 query.maxnumeric = maxnumeric; 119 121 // "all", needed when combining queries where the document results are needed 120 122 if (need_matching_docs (request.filterResultOptions)) query.maxdocs = -1; … … 170 172 gdbmptr = NULL; 171 173 textsearchptr = NULL; 174 maxnumeric = 4; 172 175 173 176 FilterOption_t filtopt; … … 337 340 } else if (key == "indexstem") { 338 341 indexstem = cfgline[0]; 339 } 342 } else if (key == "maxnumeric") { 343 maxnumeric = cfgline[0].getint(); 344 } 345 340 346 } 341 347 -
trunk/gsdl/src/colservr/queryfilter.h
r10954 r12314 53 53 54 54 searchclass *textsearchptr; 55 55 56 int maxnumeric; 57 56 58 // get the query parameters 57 59 void parse_query_params (const FilterRequest_t &request,
Note:
See TracChangeset
for help on using the changeset viewer.