You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by Debra <de...@netvision.net.il> on 2007/03/15 07:20:07 UTC

Reloading solr schema file

Is there a way to reload schema.xml while solr is running? 

As a newbiie Java programmer I'm not sure what happens if I do the
following: 

SolrCore core = new SolrCore(null,null); 

Will it replace the current core? What happens to requests that are running? 


What if I do? 

SolrCore core =SolrCore.getSolrCore(); 
core=null; // first core.close(); ?? 
core =SolrCore.getSolrCore(); 



TIA 
Debra
-- 
View this message in context: http://www.nabble.com/Reloading-solr-schema-file-tf3406562.html#a9489139
Sent from the Solr - User mailing list archive at Nabble.com.


Re: Reloading solr schema file

Posted by Chris Hostetter <ho...@fucit.org>.
: As a newbiie Java programmer I'm not sure what happens if I do the
: following:
:
: SolrCore core = new SolrCore(null,null);
:
: Will it replace the current core? What happens to requests that are running?

I think the best answer to that question is "undefined behavior" ...
that's not a situation Solr was really designed for, so i don't know that
the neccessary bulletproofing has been put into place to make it feasible.

Consider all of instances in the code base where SolrCore.getSolrCore() is
called ... if the core is changed in mid request, you could get some
extremely odd behavior.


-Hoss