Changeset 3348


Ignore:
Timestamp:
2002-08-12T10:40:41+12:00 (22 years ago)
Author:
kjdon
Message:

added some more debug info

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/src/mgpp/text/Queryer.cpp

    r3015 r3348  
    5050       << "\t.c0/.c1\t\tcasefolding off/on\n"
    5151       << "\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";
    5355
    5456}
     
    8890 
    8991  // init the text system
    90   TextData textData;
     92    TextData textData;
    9193  if (!textData.LoadData (basePath, textfilename)) {
    9294    FatalError (1, "Couldn't load text information for \"%s\"", textfilename);
     
    99101  }
    100102
     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 
    101111  // do querying
    102112  QueryInfo queryInfo;
     
    166176    cin >> docNum;
    167177    cin.getline(query, 2048, '\n'); // eat up return
    168 
     178   
    169179    if (!GetDocText (textData, queryInfo.docLevel, docNum, docText)) {
    170180      FatalError (1, "Error while trying to get document %u", docNum);
    171181    }
    172 
     182   
    173183    cout << docText << "\n";
    174184      }
     
    252262
    253263  // clean up, everybody clean up
    254   textData.UnloadData ();
     264    textData.UnloadData ();
    255265  indexData.UnloadData ();
    256266
Note: See TracChangeset for help on using the changeset viewer.