[
https://issues.apache.org/jira/browse/SOLR-567?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12595933#action_12595933
]
Jason Rutherglen commented on SOLR-567:
---------------------------------------
Forgot to mention about a couple of new classes inside SolrCore. This helps
separate them from SolrConfig. Files such as the config and schema can be
loaded from the network.
{noformat}
public static abstract class FileLoader {
public abstract InputStream open(String resource);
}
public static abstract class ClassInstantiator {
public abstract Class findClass(String cname, String... subpackages);
public abstract Object newInstance(String cname, String ... subpackages);
}
{noformat}
> SolrCore Pluggable
> ------------------
>
> Key: SOLR-567
> URL: https://issues.apache.org/jira/browse/SOLR-567
> Project: Solr
> Issue Type: Improvement
> Affects Versions: 1.3
> Reporter: Jason Rutherglen
> Attachments: solr.567.5.10.2008.patch, solr.567.5.11.2008.patch
>
>
> SolrCore needs to be an abstract class with the existing functionality in a
> subclass. SolrIndexSearcher the same. It seems that most of the Searcher
> methods in SolrIndexSearcher are not used. The new abstract class need only
> have the methods used by the other Solr classes. This will allow other
> indexing and search implementations to reuse the other parts of Solr. Any
> other classes that have functionality specific to the Solr implementation of
> indexing and replication such as SolrConfig can be made abstract.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.