Changeset 9915
- Timestamp:
- 2005-05-20T11:19:56+12:00 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl/src/colservr/lucenesearch.cpp
r9620 r9915 323 323 text_t &output) { 324 324 325 cerr << "**** Should return document text here!" << endl; 326 327 /* 328 #ifdef __WIN32__ 329 char basepath[]=""; 330 #else 331 char basepath[] = "/"; 332 #endif 333 char *textname = (filename_cat(collectdir, "index", "text", collection)).getcstr();; 334 335 336 TextData textdata; 337 if(!textdata.LoadData(basepath, textname)) { 338 cout<<"couldn't load text data\n"<<endl; 339 return false; 340 } 341 342 UCArray doctext; 343 UCArray level; 344 SetCStr(level, gdbm_level.getcstr()); 345 if (!GetDocText(textdata, level, (unsigned long)docnum, doctext)) { 346 cout<<"couldn't retrieve document text\n"; 347 return false; 348 } 349 350 // convert UCArray to text_t 351 output.clear(); 352 char* doctext_cstr = GetCStr(doctext); 353 output = to_uni(doctext_cstr); // convert from utf-8 to unicode 354 delete doctext_cstr; 355 356 // here need to remove the <Document>, <Section>, <Paragraph> tags 357 358 359 //clean up 360 textdata.UnloadData (); 361 delete textname; 362 363 return true; 364 365 */ 366 325 // we now get the document directly by lucenegdbmsource, so don't use this 326 // method 367 327 return false; 368 328 }
Note:
See TracChangeset
for help on using the changeset viewer.