On 1/7/2014 3:53 AM, Scatman wrote:
> I'm just back to work with Solr and saw the feature, since 4.4, with the new
> structure of solr.xml
> 
> I'm just wondering, since core's properties are in the core.properties
> files, what is the new minimal file for the solr.xml ? 
> 
> I saw in a topic that even if solr.xml wasn't create, solr will run without
> error ( i didn't try myself at the moment ). I ask it because the new
> structure will be mandatory at 5.0

I am pretty sure that the absolute minimum you would need for a solr.xml
in the new format is:

<solr />

This would set all the possible options to their defaults.

The solr.xml file contains a number of "global" configuration options.
With the old-style solr.xml where core information is ALSO stored in
that file, your solr.xml file ends up being different on multiple
servers.  The new format only stores configuration information, so it
can (and probably should) be identical on each server in a cluster.

http://wiki.apache.org/solr/Solr.xml%204.4%20and%20beyond

If you use the new solr.xml format, a very recent Solr version, and
SolrCloud, you can store solr.xml in zookeeper, which means that you can
easily maintain an identical solr.xml for multiple servers.  Change it
once in zookeeper, do a rolling restart on all your Solr instances, and
they're all using it.

The old format will be supported on all future 4.x releases, so you do
not need to switch right away.

Thanks,
Shawn

Reply via email to