@Override public void crawlComplete(String type, boolean commitNeeded) { if (commitNeeded) { idxMgr.getIndex(type).commit(); } synchronized (runningCrawlers) { runningCrawlers.remove(type); } logger.info("type " + type + " removed from runningCrawlers"); }
public void clearIndex(String type) { idxMgr.getIndex(type).deleteByQuery("type:" + type); }
@Override public List<Hit> findByType(String type, String query) { return idxMgr.getIndex(type).doQuery(query); }