Changeset 3348
- Timestamp:
- 2002-08-12T10:40:41+12:00 (22 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl/src/mgpp/text/Queryer.cpp
r3015 r3348 50 50 << "\t.c0/.c1\t\tcasefolding off/on\n" 51 51 << "\t.s0/.s1\t\tstemming off/on\n" 52 << "\t.o0/.o1\t\tshort output off/on\n\n"; 52 << "\t.o0/.o1\t\tshort output off/on\n\n" 53 << "\t.p\t\tprint a document (enter the docnum at the prompt)\n" 54 << "otherwise just enter a query\n\n"; 53 55 54 56 } … … 88 90 89 91 // init the text system 90 TextData textData;92 TextData textData; 91 93 if (!textData.LoadData (basePath, textfilename)) { 92 94 FatalError (1, "Couldn't load text information for \"%s\"", textfilename); … … 99 101 } 100 102 103 // debug output 104 cerr << "num docs: "<<indexData.bdh.num_docs 105 << "\nnum frags: "<<indexData.bdh.num_frags 106 << "\nnum words: "<<indexData.bdh.num_words 107 << "\ntotal bytes: "<<indexData.bdh.total_bytes 108 << "\nindex string bytes: "<<indexData.bdh.index_string_bytes 109 << "\nnum levels: "<<indexData.bdh.num_levels<<endl; 110 101 111 // do querying 102 112 QueryInfo queryInfo; … … 166 176 cin >> docNum; 167 177 cin.getline(query, 2048, '\n'); // eat up return 168 178 169 179 if (!GetDocText (textData, queryInfo.docLevel, docNum, docText)) { 170 180 FatalError (1, "Error while trying to get document %u", docNum); 171 181 } 172 182 173 183 cout << docText << "\n"; 174 184 } … … 252 262 253 263 // clean up, everybody clean up 254 textData.UnloadData ();264 textData.UnloadData (); 255 265 indexData.UnloadData (); 256 266
Note:
See TracChangeset
for help on using the changeset viewer.