public List<JATETerm> extract( String solrHomePath, String coreName, String jatePropertyFile, Map<String, String> params) throws IOException, JATEException { EmbeddedSolrServer solrServer = new EmbeddedSolrServer(Paths.get(solrHomePath), coreName); SolrCore core = solrServer.getCoreContainer().getCore(coreName); List<JATETerm> result = extract(core, jatePropertyFile, params); solrServer.close(); core.close(); return result; }
public void shutdownSolrServer() { if (this.solrServer != null && solrServer.getCoreContainer() != null) { solrServer.getCoreContainer().shutdown(); } }
public void close() { if (embedded) { ((EmbeddedSolrServer) server).shutdown(); } }