lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jan Høydahl (JIRA) <>
Subject [jira] [Commented] (SOLR-7885) Add support for loading HTTP resources
Date Wed, 16 Dec 2015 21:47:46 GMT


Jan Høydahl commented on SOLR-7885:

With SolrCloud, you could use ZooKeeper as integration point and let the external system push
updated config to ZK and then call the {{reload-config}} API, or even reload the whole collection.

Another future solution could be adding a REST API for editing DIH-configs, along the lines
of what we already have for schema, solrconfig and security.json. Cannot find any open JIRAs
for such a feature though.

> Add support for loading HTTP resources
> --------------------------------------
>                 Key: SOLR-7885
>                 URL:
>             Project: Solr
>          Issue Type: Improvement
>          Components: contrib - DataImportHandler, SolrJ
>    Affects Versions: 5.3
>            Reporter: Aaron LaBella
>         Attachments: SOLR-7885-1.patch, SOLR-7885-2.patch
> I have a need to be able to load data import handler configuration files from an HTTP
server instead of the local file system.  So, I modified {code}org.apache.solr.core.SolrResourceLoader{code}
and some of the respective dataimport files in {code}org.apache.solr.handler.dataimport{code}
to be able to support doing this.  
> {code}solrconfig.xml{code} now has the option to define a parameter: *configRemote*,
and if defined (and it's an HTTP(s) URL), it'll attempt to load the resource.  If successfully,
it'll also persist the resource to the local file system so that it is available on a solr
server restart per chance that the remote resource is currently unavailable.
> Lastly, to be consistent with the pattern that already exists in SolrResourceLoader,
this feature is *disabled* by default, and requires the setting of an additional JVM property:
> Please review and let me know if there is anything else that needs to be done in order
for this patch to make the next release.  As far as I can tell, it's fully tested and ready
to go.
> Thanks.

This message was sent by Atlassian JIRA

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message