lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Shawn Heisey <>
Subject Re: AW: AW: CoreContainer#createAndLoad, existing cores not loaded
Date Thu, 29 Jan 2015 19:29:43 GMT
On 1/29/2015 10:15 AM, Clemens Wyss DEV wrote:
>> to put your solr home inside the extracted WAR
> We are NOT using war's
>> coreRootDirectory
> I don't have this property in my sorl.xml
>> If there will only be files in that cores directory
> Again, I see no file. I am creating my cores through CoreContainer.createCore(
CordeDescriptor). The folder(s) are created but  no file

I am pretty clueless when it comes to the embedded server, but if you
are creating the cores in the java code every time you create the
container, I bet what I'm telling you doesn't apply at all.  The
solr.xml file may not even be used.

The recommendation these days is to NOT use the embedded server.  There
are too many limitations and it doesn't receive as much user testing as
the webapp.  Start Solr as a separate process and access it over http.
The overhead of http on a LAN is minimal, and over localhost it's almost

To do that, you would just need to change your code to use one of the
client objects.  That would probably be HttpSolrServer, which is renamed
to HttpSolrClient in 5.0.  They share the same parent object as
EmbeddedSolrServer.  Most of the relevant methods used come from the
parent class, so you would need very few code changes.


View raw message