org.springframework.data.solr.core.SolrTemplate Java Examples

The following examples show how to use org.springframework.data.solr.core.SolrTemplate. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: SolrCollectionConfigurer.java    From ambari-logsearch with Apache License 2.0 5 votes vote down vote up
public SolrTemplate createSolrTemplate(SolrPropsConfig solrPropsConfig) {
  SolrClient solrClient = createClient(
    solrPropsConfig.getSolrUrl(),
    solrPropsConfig.getZkConnectString(),
    solrPropsConfig.getCollection());
  solrClientsHolder.setSolrClient(solrClient, collectionType);
  return new SolrTemplate(solrClient);
}
 
Example #2
Source File: MetadataSolrDao.java    From ambari-logsearch with Apache License 2.0 4 votes vote down vote up
@Override
public void setSolrTemplate(SolrTemplate solrTemplate) {
  this.metadataSolrTemplate = solrTemplate;
}
 
Example #3
Source File: Application.java    From Spring-data-solr-example with Apache License 2.0 4 votes vote down vote up
@Bean
public SolrTemplate solrTemplate(SolrServer server) throws Exception {
	return new SolrTemplate(server);
}
 
Example #4
Source File: SolrConfig.java    From tutorials with MIT License 4 votes vote down vote up
@Bean
public SolrTemplate solrTemplate(SolrClient client) throws Exception {
    return new SolrTemplate(client);
}
 
Example #5
Source File: SolrTestConfiguration.java    From spring-data-examples with Apache License 2.0 4 votes vote down vote up
public @Bean SolrTemplate solrTemplate() {
	return new SolrTemplate(new HttpSolrClient.Builder().withBaseSolrUrl("http://localhost:8983/solr").build());
}
 
Example #6
Source File: SolrConfig.java    From tools-journey with Apache License 2.0 4 votes vote down vote up
@Bean
public SolrTemplate solrTemplate(SolrClient client) throws Exception {
    return new SolrTemplate(client);
}
 
Example #7
Source File: SolrAuditLogsHealthIndicator.java    From ambari-logsearch with Apache License 2.0 4 votes vote down vote up
@Override
public SolrTemplate getSolrTemplate() {
  return auditSolrDao.getSolrTemplate();
}
 
Example #8
Source File: SolrMetadataHealthIndicator.java    From ambari-logsearch with Apache License 2.0 4 votes vote down vote up
@Override
public SolrTemplate getSolrTemplate() {
  return metadataSolrDao.getSolrTemplate();
}
 
Example #9
Source File: SolrServiceLogsHealthIndicator.java    From ambari-logsearch with Apache License 2.0 4 votes vote down vote up
@Override
public SolrTemplate getSolrTemplate() {
  return serviceLogsSolrDao.getSolrTemplate();
}
 
Example #10
Source File: MetadataSolrDao.java    From ambari-logsearch with Apache License 2.0 4 votes vote down vote up
@Override
public SolrTemplate getSolrTemplate() {
  return metadataSolrTemplate;
}
 
Example #11
Source File: ServiceLogsSolrDao.java    From ambari-logsearch with Apache License 2.0 4 votes vote down vote up
@Override
public void setSolrTemplate(SolrTemplate solrTemplate) {
  this.serviceSolrTemplate = solrTemplate;
}
 
Example #12
Source File: ServiceLogsSolrDao.java    From ambari-logsearch with Apache License 2.0 4 votes vote down vote up
@Override
public SolrTemplate getSolrTemplate() {
  return serviceSolrTemplate;
}
 
Example #13
Source File: AuditSolrDao.java    From ambari-logsearch with Apache License 2.0 4 votes vote down vote up
@Override
public void setSolrTemplate(SolrTemplate solrTemplate) {
  this.auditSolrTemplate = solrTemplate;
}
 
Example #14
Source File: AuditSolrDao.java    From ambari-logsearch with Apache License 2.0 4 votes vote down vote up
@Override
public SolrTemplate getSolrTemplate() {
  return auditSolrTemplate;
}
 
Example #15
Source File: SolrDaoBase.java    From ambari-logsearch with Apache License 2.0 votes vote down vote up
public abstract void setSolrTemplate(SolrTemplate solrTemplate); 
Example #16
Source File: AbstractSolrHealthIndicator.java    From ambari-logsearch with Apache License 2.0 votes vote down vote up
public abstract SolrTemplate getSolrTemplate(); 
Example #17
Source File: SolrDaoBase.java    From ambari-logsearch with Apache License 2.0 votes vote down vote up
public abstract SolrTemplate getSolrTemplate();