> I sent this command: curl http://localhost:8081/solr/update -F stream.body=' > <commit />', but it doesn't reload. > > It doesn't reload automatically after every commit or > optimize unless I add > new document then i commit.
Hmm. May be there is an easier way to force it? (add empty/dummy doc) But if you are okey with the core reload/restart you can use this custom code to do it. You need to register this in solrconfig.xml. If you don't want to use custom code you need to use http://wiki.apache.org/solr/CoreAdmin#RELOAD public class DummyRequestHandler extends RequestHandlerBase { public void handleRequestBody(SolrQueryRequest req, SolrQueryResponse rsp) throws Exception { try { req.getCore().getCoreDescriptor().getCoreContainer().reload(""); rsp.add("message", "core reloaded successfully"); } catch (final Throwable t) { rsp.add("message", t.getMessage()); } }