Esempio n. 1
0
 public static void main(String[] args) {
   try {
     SearchEngine.parseCommandLine(args);
     switch (SearchEngine.MODE) {
       case MINING:
         startMining();
         break;
       case INDEX:
         startIndexing();
         break;
       case SERVE:
         startServing();
         break;
       default:
         Check(false, "Wrong mode for SearchEngine!");
     }
   } catch (Exception e) {
     System.err.println(e.getMessage());
   }
 }
Esempio n. 2
0
 @Override
 public int documentTermFrequency(String term, String url) {
   SearchEngine.Check(false, "Not implemented!");
   return 0;
 }