return "Index" + index;
}
public static IndexSearcher getSearcher(Integer index) throws IOException {
Profile prof = new Profile("getIndexSearcher").start();
IndexSearcher result = null;
synchronized (searchers) {
if (!searchers.containsKey(index)) {
Directory directory = getDirectory(index);
result = createSearcher(directory, index);
searchers.put(index, result);
} else {
result = searchers.get(index);
}
}
prof.end().log();
return result;
}