本文整理汇总了Java中org.gbif.common.search.solr.SolrConfig类的典型用法代码示例。如果您正苦于以下问题:Java SolrConfig类的具体用法?Java SolrConfig怎么用?Java SolrConfig使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
SolrConfig类属于org.gbif.common.search.solr包,在下文中一共展示了SolrConfig类的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: configureService
import org.gbif.common.search.solr.SolrConfig; //导入依赖的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.SolrConfig; //导入依赖的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.SolrConfig; //导入依赖的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: RealTimeModule
import org.gbif.common.search.solr.SolrConfig; //导入依赖的package包/类
public RealTimeModule(SolrConfig cfg) {
this.cfg = cfg;
}
示例5: empty
import org.gbif.common.search.solr.SolrConfig; //导入依赖的package包/类
public static boolean empty(SolrConfig cfg) {
return cfg.getServerType() == null
|| Strings.isNullOrEmpty(cfg.getServerHome())
|| (cfg.getServerType() == SolrServerType.HTTP && !cfg.getServerHome().startsWith("http"));
}
示例6: DatasetIndexUpdater
import org.gbif.common.search.solr.SolrConfig; //导入依赖的package包/类
public DatasetIndexUpdater(ClbConfiguration clb, SolrConfig dataset) {
this.clb = clb;
solr = dataset.buildSolr();
}
示例7: OccurrenceHeatmapsModule
import org.gbif.common.search.solr.SolrConfig; //导入依赖的package包/类
public OccurrenceHeatmapsModule(Properties properties) {
super(PREFIX, properties);
solrConfig = SolrConfig.fromProperties(properties, SOLR_PREFIX);
}
示例8: OccurrenceSearchModule
import org.gbif.common.search.solr.SolrConfig; //导入依赖的package包/类
public OccurrenceSearchModule(Properties properties) {
super(PREFIX, properties);
solrConfig = SolrConfig.fromProperties(properties, SOLR_PREFIX);
}
示例9: OccurrenceSearchTestModule
import org.gbif.common.search.solr.SolrConfig; //导入依赖的package包/类
/**
* Default constructor.
*/
public OccurrenceSearchTestModule(Properties properties) {
super(PREFIX, properties);
solrConfig = SolrConfig.fromProperties(properties, PREFIX + "solr.");
}