Details
-
New Feature
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
None
-
None
Description
I would like to be able to hook into the process of discovering and persisting core descriptors. This allows to work with core descriptors not stored locally, or replicated elsewhere.
For this purpose, I propose to make the CoresLocator instance configurable, pretty much like other services (e.g., ConfigSetService, some handlers) are already configurable. Attached PR creates a new "coresLocator" parameter in solr.xml in order to achieve this. Because it is created outside of the CoreContainer (it is needed to load a CoreContainer), constructor of a custom CoresLocator receives a NodeConfig object (and not a CoreContainer) that it can use to lookup other parameters, if required.
Example usage:
<solr>
<str name="coresLocator">com.myorg.CustomCoresLocator</str>
</solr>
Attachments
Issue Links
- links to