Example usage for org.springframework.data.solr.server.support EmbeddedSolrServerFactory EmbeddedSolrServerFactory

List of usage examples for org.springframework.data.solr.server.support EmbeddedSolrServerFactory EmbeddedSolrServerFactory

Introduction

In this page you can find the example usage for org.springframework.data.solr.server.support EmbeddedSolrServerFactory EmbeddedSolrServerFactory.

Prototype

public EmbeddedSolrServerFactory(String solrHome)
        throws ParserConfigurationException, IOException, SAXException 

Source Link

Usage

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

@Bean
public SolrClientFactory solrClientFactory(final String solrHomeDir)
        throws ParserConfigurationException, IOException, SAXException {

    prepareConfiguration(solrHomeDir);/* ww w  . ja  v  a  2s  .c  o m*/
    return new EmbeddedSolrServerFactory(solrHomeDir);
}