105106107108109110111112113114115
// TODO Auto-generated catch block e.printStackTrace(); } if(i++ > 300){ throw new ElasticSearchException("index timed out creating"); } } ClassLoader classLoader = null;
152153154155156157158159160
info.live=liveIndex; APILocator.getIndiciesAPI().point(info); return timeStamp; } catch (Exception e) { throw new ElasticSearchException(e.getMessage(), e); } }
192193194195196197198199200201202
iapi.moveIndexToLocalNode(workingIndex); iapi.moveIndexToLocalNode(liveIndex); return timeStamp; } catch (Exception e) { throw new ElasticSearchException(e.getMessage(), e); } } else return initIndex(); }
244245246247248249250251
list.add(newinfo.working); list.add(newinfo.live); optimize(list); } catch (Exception e) { throw new ElasticSearchException(e.getMessage(), e); } }
425426427428429430431432433434435
bulk.execute().actionGet(); } catch(Exception ex) { throw new ElasticSearchException(ex.getMessage(),ex); } } }; HibernateUtil.addCommitListener(content.getInode()+HibernateUtil.removeFromIndex,indexRunner); }
487488489490491492493494
iapi.moveIndexBackToCluster(rew); iapi.moveIndexBackToCluster(rel); } catch (Exception e) { throw new ElasticSearchException(e.getMessage(), e); } }
190191192193194195196197
Logger.info(this.getClass(), "Optimizing " + indexNames + " :" + res.getSuccessfulShards() + "/" + res.getTotalShards() + " shards optimized"); return true; } catch (Exception e) { throw new ElasticSearchException(e.getMessage()); } }
211212213214215216217218
AdminLogger.log(this.getClass(), "delete", "Index: " + indexName + " deleted."); return res.isAcknowledged(); } catch (Exception e) { throw new ElasticSearchException(e.getMessage()); } }
780781782783784785786787788789790
for ( SearchHit hit : hits ) { try { cons.add( find( hit.field("inode").getValue().toString() ) ); } catch ( Exception e ) { throw new ElasticSearchException( e.getMessage(), e ); } } return cons; }
872873874875876877878879880
// if we don't have the con in this language catch(java.lang.ArrayIndexOutOfBoundsException aibex){ return null; } catch (Exception e) { throw new ElasticSearchException(e.getMessage()); } }