Improvements to SolrServerProvides
----------------------------------
Key: STANBOL-376
URL: https://issues.apache.org/jira/browse/STANBOL-376
Project: Stanbol
Issue Type: Improvement
Components: Commons
Reporter: Rupert Westenthaler
Assignee: Rupert Westenthaler
SolrServerProviders[1] are used to get clients for SolrServers based on the
access uri. In case of "http" clients based on the RESTful interface of Solr
are constructed. In other cases an EmbeddedSolrServer instance is created.
two improvements are planed as part of this:
1. move this service form the commons.solr.core to an own artifact with the
name "org.apache.stanbol.commons.solr.provides"
2. make the EmbeddedSolrServerProvider[2] fully take advantage of STANBOL-354:
Currently only for relatives paths CoreContainers are looked up as OSGI
services. If an absolute path is parsed this components initializes and managed
its own CoreContainers. This feature allowed to use Solr directories that where
not managed by Stanbol. However with the current implementation such Solr
CoreContainers and their SolrCores are not registered as OSGI.
The proposal is to define a new OSGI component called "ReferencedSolrServer"
that allows to explicitly register such directories (e.g. by configuring an
instance of this Component via the Apache Felix WebConsole). By that the
EmbeddedSolrServerProvider would only need to lookup CoreContainer and
SolrCores for parsed paths as OSGI services and would no longer need to
internally manage CoreContainers.
In addition this change would also allow to provide the RESTful API of such -
referenced - Solr CoreContainers via the HttpService of the OSGI environment
running Stanbol (as described by STANBOL-343.
[1]
http://svn.apache.org/viewvc/incubator/stanbol/trunk/commons/solr/core/src/main/java/org/apache/stanbol/commons/solr/SolrServerProviderManager.java?revision=1186726&view=markup
[2]
http://svn.apache.org/viewvc/incubator/stanbol/trunk/commons/solr/core/src/main/java/org/apache/stanbol/commons/solr/impl/EmbeddedSolrPorovider.java?revision=1195450&view=markup
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira