Пример #1
0
 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();
   }
 }
Пример #3
0
 public void close() {
   if (embedded) {
     ((EmbeddedSolrServer) server).shutdown();
   }
 }