I am in the process of setting up a core using Solr 4.3.  On the Core
Discovery<http://wiki.apache.org/solr/Core%20Discovery%20(4.3%20and%20beyond)>
wiki
page it states:

As of SOLR-4196, there's a new way of defining cores. Essentially, it is no
longer necessary to define cores in solr.xml. In fact, solr.xml is no
longer necessary at all and will be obsoleted in Solr 5.x. As of Solr 4.3
the process is as follows:


   - If a solr.xml file is found in <SOLR_HOME>, then it is expected to be
      the old-style solr.xml that defines cores etc.
      - If there is no solr.xml but there is a solr.properties file, then
      exploration-based core enumeration is assumed.
      - If neither a solr.xml nor an solr.properties file is found, a
      default solr.xml file is assumed. NOTE: as of 5.0, this will not be true
      and an error will be thrown if no solr.properties file is found.

Using the 4.3 war available for download, I attempted to set up my core
using the solr.properties file (in anticipation of moving to 5.0).  When I
start the context, logging shows that the process is falling back to the
default solr.xml file (essentially the second bullet does not occur).
 After digging through the 4_3 branch it looks like solr.properties is not
yet part of the library.  Am I missing something (I'm able to get the
context started using a solr.xml file with "<solr></solr>" as the contents)?

I'm going with a basic solr.xml for now, but any insight would be
appreciated.

Thanks in advance.

Reply via email to