Spring Data Solr

org.springframework.data.solr.server
Interface SolrServerFactory

All Known Implementing Classes:
EmbeddedSolrServerFactory, EmbeddedSolrServerFactoryBean, HttpSolrServerFactory, HttpSolrServerFactoryBean, MulticoreSolrServerFactory

public interface SolrServerFactory

SolrServerFactory provides access to the solrj SolrServer.

Author:
Christoph Strobl

Method Summary
 List<String> getCores()
          Get list of cores
 org.apache.solr.client.solrj.SolrServer getSolrServer()
          Get base SolrServer instance
 org.apache.solr.client.solrj.SolrServer getSolrServer(String core)
          Get configured SolrServer for specific core
 

Method Detail

getSolrServer

org.apache.solr.client.solrj.SolrServer getSolrServer()
Get base SolrServer instance

Returns:
a reusable solrServer instance

getSolrServer

org.apache.solr.client.solrj.SolrServer getSolrServer(String core)
Get configured SolrServer for specific core

Parameters:
core -
Returns:

getCores

List<String> getCores()
Get list of cores

Returns:
empty list if no cores defined

Spring Data Solr

Copyright © 2011-2014-2014 Pivotal. All Rights Reserved.