> You could make your own little plugin RequestHandler that
> did the reload 
> though. The RQ could get the CoreContainer from the
> SolrCore retrieved 
> from the request, and then call reload on the "" core.
> 

Awesome, this piece of code reloaded schema.xml, stopwords.txt etc. Thanx!

public class DummyRequestHandler extends RequestHandlerBase {
    public void handleRequestBody(SolrQueryRequest req, SolrQueryResponse rsp) 
throws Exception {
        req.getCore().getCoreDescriptor().getCoreContainer().reload("");
        rsp.add("message", "core reloaded");
    }
}


      

Reply via email to