- Timestamp:
- 2010-04-28T11:51:37+12:00 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/greenstone2/runtime-src/src/recpt/phindaction.cpp
r16310 r21973 35 35 #include "phindaction.h" 36 36 #include "fileutil.h" 37 #include "gsdlunicode.h" 37 38 38 39 phindaction::phindaction () { … … 189 190 * DLConsulting 12-07-2004 190 191 */ 192 191 193 if(!find_phrase_number_from_word(basepath, word, result)) { 192 194 output_error("phindaction: Fatal Error! Couldn't load index information in find_phrase_number_from_word()", … … 196 198 197 199 if (result.empty()) { 198 output_error("phindaction: The search term does not occur in the collection",200 output_error("phindaction: The search term ("+word+") does not occur in the collection", 199 201 textout, outconvert, disp, logout, XMLmode); 200 202 return true; … … 516 518 // mode 1 = casefolded, unstemmed search 517 519 UCArray ucquery; 518 toUCArray(query, ucquery); 520 // greenstone gives us the query encoded in unicode. We want utf8. 521 char* utf8querystring=to_utf8(query).getcstr(); 522 SetCStr(ucquery, utf8querystring); 523 delete []utf8querystring; 524 525 //toUCArray(query, ucquery); 519 526 QueryNode *queryTree = ParseQuery(ucquery, 1, 1, 4); 520 527
Note:
See TracChangeset
for help on using the changeset viewer.