本文整理汇总了Java中org.gbif.common.search.solr.SolrModule类的典型用法代码示例。如果您正苦于以下问题:Java SolrModule类的具体用法?Java SolrModule怎么用?Java SolrModule使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
SolrModule类属于org.gbif.common.search.solr包,在下文中一共展示了SolrModule类的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: configureService
import org.gbif.common.search.solr.SolrModule; //导入依赖的package包/类
@Override
protected void configureService() {
//Setting this property because the default value in the solrconfig.xml is solr.lock.type=hdfs
System.setProperty("solr.lock.type", "native");
// Object <-> Document converter binding
bind(NameUsageDocConverter.class).in(Scopes.SINGLETON);
// Main indexer class
bind(SolrBackfill.class).in(Scopes.SINGLETON);
install(new SolrModule(SolrConfig.fromProperties(getProperties(), "solr.")));
expose(SolrBackfill.class);
expose(SolrClient.class);
expose(EmbeddedSolrReference.class);
}
示例2: configureService
import org.gbif.common.search.solr.SolrModule; //导入依赖的package包/类
@Override
protected void configureService() {
// do we have solr already?
if (installSolr) {
// bind solr server, using the checklistbank.search.solr.server property
install(new SolrModule(SolrConfig.fromProperties(getProperties(), "solr.")));
}
bind(NameUsageSearchService.class).to(NameUsageSearchServiceImpl.class).in(Scopes.SINGLETON);
expose(NameUsageSearchService.class);
}
示例3: configure
import org.gbif.common.search.solr.SolrModule; //导入依赖的package包/类
@Override
protected void configure() {
Names.bindProperties(binder(), workflowConfiguration.getDownloadSettings());
install(new SolrModule(SolrConfig.fromProperties(workflowConfiguration.getDownloadSettings(),
PROPERTIES_SOLR_PREFIX)));
bind(OccurrenceMapReader.class);
bind(DownloadPrepareAction.class);
bind(WorkflowConfiguration.class).toInstance(workflowConfiguration);
if (configuration.isPresent()) {
bind(DownloadJobConfiguration.class).toInstance(configuration.get());
}
bind(RegistryClientUtil.class).toInstance(new RegistryClientUtil(workflowConfiguration.getDownloadSettings()));
bindDownloadFilesBuilding();
}
示例4: configureService
import org.gbif.common.search.solr.SolrModule; //导入依赖的package包/类
@Override
protected void configureService() {
install(new SolrModule(solrConfig));
bind(NameUsageMatchingService.class).toInstance(Mockito.mock(NameUsageMatchingService.class));
bind(OccurrenceSearchService.class).to(OccurrenceSearchImpl.class);
expose(OccurrenceSearchService.class);
// Exposes the SolrClient because it is required to create the index.
expose(SolrClient.class);
}
示例5: configureService
import org.gbif.common.search.solr.SolrModule; //导入依赖的package包/类
@Override
protected void configureService() {
install(new SolrModule(solrConfig));
bind(OccurrenceHeatmapsService.class);
expose(OccurrenceHeatmapsService.class);
}
示例6: configureService
import org.gbif.common.search.solr.SolrModule; //导入依赖的package包/类
@Override
protected void configureService() {
install(new SolrModule(solrConfig));
bind(OccurrenceSearchService.class).to(OccurrenceSearchImpl.class);
expose(OccurrenceSearchService.class);
}