List of usage examples for org.apache.solr.client.solrj.request CoreStatus getInstanceDirectory
public String getInstanceDirectory()
From source file:org.opencb.commons.datastore.solr.SolrManager.java
License:Apache License
/** * Check if a given core exists./*from w ww . jav a 2 s. com*/ * * @param coreName Core name * @return True or false */ public boolean existsCore(String coreName) { try { CoreStatus status = CoreAdminRequest.getCoreStatus(coreName, solrClient); status.getInstanceDirectory(); } catch (Exception e) { return false; } return true; }