Changeset 12421
- Timestamp:
- 2006-08-09T13:06:51+12:00 (18 years ago)
- Location:
- trunk/gsdl
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl/macros/english.dm
r12380 r12421 317 317 _textinvalidquery_ {Invalid query syntax} 318 318 _textstopwordsmsg_ {The following words are too common and were ignored: } 319 _textlucenetoomanyclauses_ {Your query contained too many search terms; please try a more specific query.} 319 320 320 321 _textmorethan_ {More than } -
trunk/gsdl/src/colservr/expat_resultset.cpp
r12420 r12421 45 45 if (element_name == "Error") { 46 46 char* error_type_str = get_attribute(attributes, "type"); 47 queryresult_ptr->error_message = error_type_str; 47 48 if ((text_t) error_type_str == "PARSE_EXCEPTION") { 48 49 queryresult_ptr->syntax_error = true; -
trunk/gsdl/src/colservr/lucenequeryfilter.cpp
r12380 r12421 164 164 queryresultsclass queryresults; 165 165 do_multi_query (request, queryfilterparams, queryresults, err, logout); 166 response.error_message = queryresults.error_message; 166 167 if (err != noError) return; 168 167 169 // assemble document results 168 170 if (need_matching_docs (request.filterResultOptions)) { … … 343 345 344 346 if (query_params.size() == 1) { 347 multiresults.error_message = thisqueryresults.error_message; 345 348 multiresults.docs = thisqueryresults.docs; // just one set of results 346 349 multiresults.docs_matched = thisqueryresults.docs_matched; -
trunk/gsdl/src/colservr/queryinfo.cpp
r12410 r12421 328 328 329 329 void queryresultsclass::clear () { 330 error_message = g_EmptyText; 330 331 docs_matched = 0; 331 332 is_approx = Exact; … … 339 340 340 341 queryresultsclass &queryresultsclass::operator=(const queryresultsclass &q) { 342 error_message = q.error_message; 341 343 docs_matched = q.docs_matched; 342 344 is_approx = q.is_approx; -
trunk/gsdl/src/colservr/queryinfo.h
r12410 r12421 168 168 queryresultsclass () {clear();} 169 169 170 text_t error_message; // Currently only used by Lucene 170 171 int docs_matched; // not available on all versions of mg 171 172 isapprox is_approx; -
trunk/gsdl/src/recpt/comtypes.cpp
r12380 r12421 263 263 264 264 void FilterResponse_t::clear () { 265 error_message = g_EmptyText; 265 266 numDocs = 0; 266 267 isApprox = Exact; … … 271 272 272 273 FilterResponse_t &FilterResponse_t::operator=(const FilterResponse_t &x) { 274 error_message = x.error_message; 273 275 numDocs = x.numDocs; 274 276 isApprox = x.isApprox; -
trunk/gsdl/src/recpt/comtypes.h
r12380 r12421 328 328 FilterResponse_t () {clear();} 329 329 330 text_t error_message; // Currently only used by Lucene 330 331 int numDocs; 331 332 isapprox isApprox; -
trunk/gsdl/src/recpt/queryaction.cpp
r12389 r12421 1219 1219 break; 1220 1220 } 1221 if (response.error_message == "TOO_MANY_CLAUSES") { 1222 freqmsg = "_textlucenetoomanyclauses_"; 1223 break; 1224 } 1221 1225 if (isApprox == Exact) 1222 1226 isApprox = response.isApprox; … … 1370 1374 get_formatted_query_string(formattedstring, segment, args, disp, logout); 1371 1375 1372 1376 if (!formattedstring.empty()) { // do the query 1373 1377 // note! formattedstring is in unicode! mg and mgpp must convert! 1374 1378 set_queryfilter_options (request, formattedstring, args); … … 1426 1430 save_search_history(args, response.numDocs, response.isApprox); 1427 1431 } 1432 1433 // If Lucene threw a TooManyClauses exception, tell the user about it 1434 if (args["ct"] == 2 && response.error_message == "TOO_MANY_CLAUSES") { 1435 disp.setmacro ("freqmsg", "query", "_textlucenetoomanyclauses_"); 1436 } 1428 1437 } 1429 1438 define_history_macros (disp, args, protos, logout); 1430 1439 1431 1440 textout << outconvert << disp << "_query:header_\n" 1432 1441 << "_query:content_";
Note:
See TracChangeset
for help on using the changeset viewer.