You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Alan Woodward (JIRA)" <ji...@apache.org> on 2014/02/12 18:16:22 UTC

[jira] [Updated] (SOLR-5234) Allow SolrResourceLoader to load resources from URLs

     [ https://issues.apache.org/jira/browse/SOLR-5234?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Alan Woodward updated SOLR-5234:
--------------------------------

    Attachment: SOLR-5234.patch

This patch adds an ExternalResourceLoader class that checks to see if a resource name is a URL.  If it is, it opens it and returns that, otherwise it just passes things on to a delegate resource loader.

It also adds an argument 'allowExternalResources' to AbstractAnalysisFactory, which if set to true will wrap loaders passed to getLines() and friends in an ExternalResourceLoader.  This makes whether or not to allow URLs configurable on each entry in the schema.

Needs moar tests, of course.

Separately, should getWordSet and getSnowballWordSet be moved somewhere else?  They seem a bit specialized to be in AbstractAnalysisFactory.

> Allow SolrResourceLoader to load resources from URLs
> ----------------------------------------------------
>
>                 Key: SOLR-5234
>                 URL: https://issues.apache.org/jira/browse/SOLR-5234
>             Project: Solr
>          Issue Type: Improvement
>            Reporter: Alan Woodward
>            Assignee: Alan Woodward
>            Priority: Minor
>         Attachments: SOLR-5234.patch, SOLR-5234.patch, SOLR-5234.patch
>
>
> This would allow multiple solr instance to share large configuration files.  It would also help resolve problems caused by attempting to store >1Mb files in zookeeper.



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org