lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Eric Pugh <ep...@opensourceconnections.com>
Subject Shutting down an instance of EmbeddedSolrServer
Date Mon, 04 May 2009 18:47:25 GMT
Hi all,

I notice that when I use EmbeddedSolrServer I have to use Control C to  
stop the process.  I think the way to shut it down is by calling

coreContainer.shutdown().

However, is it possible to get the coreContainer from a SolrServer  
object?  Right now it is defined as protected final CoreContainer  
coreContainer;.

I wanted to do:

((EmbeddedSolrServer)solr)getCoreContainer.shutdown();

But is seem I need to keep my own reference to the coreContainer?

Is changing this worth a patch?

Eric

-----------------------------------------------------
Eric Pugh | Principal | OpenSource Connections, LLC | 434.466.1467 | http://www.opensourceconnections.com
Free/Busy: http://tinyurl.com/eric-cal





Mime
View raw message