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()); } }
@Override public int documentTermFrequency(String term, String url) { SearchEngine.Check(false, "Not implemented!"); return 0; }