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 core.properties files in that cores directory
> Again, I see no core.properties file. I am creating my cores through 
> CoreContainer.createCore( CordeDescriptor). The folder(s) are created but  no 
> core.properties 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
nothing.

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.

Thanks,
Shawn

Reply via email to