Example usage for org.springframework.data.solr.core SolrTemplate SolrTemplate

List of usage examples for org.springframework.data.solr.core SolrTemplate SolrTemplate

Introduction

In this page you can find the example usage for org.springframework.data.solr.core SolrTemplate SolrTemplate.

Prototype

public SolrTemplate(SolrClientFactory solrClientFactory) 

Source Link

Usage

From source file:com.ushahidi.swiftriver.core.solr.repository.DropDocumentRepositoryImplTest.java

@Before
public void setUp() {
    mockSolrServer = mock(SolrServer.class);
    SolrTemplate solrTemplate = new SolrTemplate(mockSolrServer);

    dropSearchRepository = new DropDocumentRepositoryImpl();
    dropSearchRepository.setSolrTemplate(solrTemplate);
}

From source file:org.springframework.data.solr.core.SolrTemplateTest.java

@Test(expected = IllegalArgumentException.class)
public void testNullServerFactory() {
    new SolrTemplate((SolrServerFactory) null);
}

From source file:org.springframework.data.rest.webmvc.solr.SolrInfrastructureConfig.java

@Bean
public SolrTemplate solrTemplate(SolrClientFactory factory) {

    attachCloseHook(factory);
    return new SolrTemplate(factory);
}