Ignore:
Timestamp:
2000-01-18T16:53:24+13:00 (24 years ago)
Author:
rjmcnab
Message:

Fixed a couple of bugs and made building silent if needed.

File:
1 edited

Legend:

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

    r855 r860  
    7575  QueryInfo queryInfo;
    7676  SetCStr (queryInfo.docLevel, "Document");
    77   queryInfo.maxDocs = 10;
     77  queryInfo.maxDocs = 100000;
    7878  queryInfo.sortByRank = true;
    7979  queryInfo.exactWeights = false;
     
    9595    if (queryArray.size() >= 2 && queryArray[0] == '.') {
    9696      if (queryArray[1] == 'q') break;  // quit
     97
     98      if (queryArray[1] == 'p') {
     99    // print
     100    UCArray docText;
     101    unsigned long docNum = 0;
     102    cin >> docNum;
     103    cin.getline(query, 2048, '\n'); // eat up return
     104
     105    if (!GetDocText (textData, queryInfo.docLevel, docNum, docText)) {
     106      FatalError (1, "Error while trying to get document %u", docNum);
     107    }
     108
     109    cout << docText << "\n";
     110      }
    97111     
    98112    } else {
     
    118132  indexData.UnloadData ();
    119133}
     134
Note: See TracChangeset for help on using the changeset viewer.