}
public static RefCounted<SolrIndexSearcher> getSearch(SolrQueryRequest req,String tablename) throws IOException
{
String path=null;
TryLockFile lock=null;
try{
lock=new TryLockFile(HigoJoinUtils.pathForLock(req, tablename));
lock.trylock();
path=pathToLocal(req, tablename);
}finally{
if(lock!=null)
{
lock.unlock();
}
}
LOG.info("###joinpath###"+path);
return req.getCore().getSearcherByPath(null,"join@"+SolrResourceLoader.getCacheFlushKey(null)+"@"+String.valueOf(path), path, false, false, false);
}