[
https://issues.apache.org/jira/browse/SOLR-7742?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Gregory Chanan updated SOLR-7742:
---------------------------------
Attachment: SOLR-7742.patch
Updated version of the patch. Changes:
1) ConfigSets now support "properties" in the form of a NamedList rather than a
single boolean immutable
2) ConfigSet properties can now be specified in a file called
configsetprops.json that is loaded from the resource handler (i.e. same logic
as solrconfig/schema, name of file can also be overridden via CoreDescriptor)
3) JSON parsing and test for ConfigSet properties file; expects a JSON map to
be specified
Note to support 2) above I had to change some error handling around in the
resource loader to be able to figure out if a file exists or not (the resource
loader throws an IOException if the file can't be found or it can't be open due
to permission issues, etc). Since it is okay for a configsetprops.json file
not to exist, this seemed like a logical change. Another way to approach this
would be to only search for the file in the conf dir (so avoid using the
resource loader); I don't really have a preference either way.
> Support for Immutable ConfigSets
> --------------------------------
>
> Key: SOLR-7742
> URL: https://issues.apache.org/jira/browse/SOLR-7742
> Project: Solr
> Issue Type: New Feature
> Reporter: Gregory Chanan
> Assignee: Gregory Chanan
> Attachments: SOLR-7742, SOLR-7742.patch
>
>
> See the discussion in SOLR-5955; to properly support collection "templates"
> that can be specified as the starting point for a collection configuration,
> we need support for ConfigSets that are immutable.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]