public class RegistrySearchModule extends org.gbif.service.guice.PrivateServiceModule
org.gbif.common.search.inject.SolrModule
:
The org.gbif.common.search.inject.SolrModule
was considered for use here, but discarded because in its current implementation:
org.gbif.common.search.solr.builders.EmbeddedServerBuilder
does not support multiple cores, but that is anticipated as a future
requirement for this projectorg.gbif.common.search.solr.builders.EmbeddedServerBuilder
does not allow someone to supply additional configuration files (it was
developed for unit test purposes only)org.gbif.common.search.inject.SolrModule
is complex as it provides configuration based declaration (e.g. to support varying
deployments. The implementor felt that was an additional learning curve that is unnecessary to put on future
developers of this project. That said, should this project require flexible deployment options in the future,
developers would be wise to consider adding multi-core support to the org.gbif.common.search.inject.SolrModule
Constructor and Description |
---|
RegistrySearchModule(Properties properties) |
Modifier and Type | Method and Description |
---|---|
void |
configureService() |
org.apache.solr.client.solrj.SolrClient |
datasetSolr(String solrHome)
A provider of the SolrServer to use with a dataset search.
|
public RegistrySearchModule(Properties properties)
public void configureService()
configureService
in class org.gbif.service.guice.PrivateServiceModule
@Provides @Exposed public org.apache.solr.client.solrj.SolrClient datasetSolr(String solrHome) throws URISyntaxException, IOException
URISyntaxException
- If /solr configuration is not found on the classpathIOException
Copyright © 2016 Global Biodiversity Information Facility. All rights reserved.