当前位置: 首页>>代码示例>>Java>>正文


Java SolrModule类代码示例

本文整理汇总了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);
}
 
开发者ID:gbif,项目名称:checklistbank,代码行数:17,代码来源:SolrIndexingModulePrivate.java

示例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);
}
 
开发者ID:gbif,项目名称:checklistbank,代码行数:13,代码来源:SearchModule.java

示例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();
}
 
开发者ID:gbif,项目名称:occurrence,代码行数:15,代码来源:DownloadWorkflowModule.java

示例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);
}
 
开发者ID:gbif,项目名称:occurrence,代码行数:11,代码来源:OccurrenceSearchTestIT.java

示例5: configureService

import org.gbif.common.search.solr.SolrModule; //导入依赖的package包/类
@Override
protected void configureService() {
  install(new SolrModule(solrConfig));
  bind(OccurrenceHeatmapsService.class);
  expose(OccurrenceHeatmapsService.class);
}
 
开发者ID:gbif,项目名称:occurrence,代码行数:7,代码来源:OccurrenceHeatmapsModule.java

示例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);
}
 
开发者ID:gbif,项目名称:occurrence,代码行数:7,代码来源:OccurrenceSearchModule.java


注:本文中的org.gbif.common.search.solr.SolrModule类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。