public class HttpSolrClientFactory extends Object implements SolrClientFactory
HttpSolrClient instances. | Modifier and Type | Field and Description | 
|---|---|
static List<String> | 
DEFAULT_CIPHER_SUITES  | 
static List<String> | 
DEFAULT_PROTOCOLS  | 
static String | 
DEFAULT_SCHEMA_XML  | 
static String | 
DEFAULT_SOLRCONFIG_XML  | 
| Constructor and Description | 
|---|
HttpSolrClientFactory()  | 
| Modifier and Type | Method and Description | 
|---|---|
static String | 
getDefaultHttpAddress()
Gets the default Solr server HTTP address. 
 | 
static String | 
getDefaultHttpsAddress()
Gets the default Solr server secure HTTP address. 
 | 
static Future<org.apache.solr.client.solrj.SolrClient> | 
getHttpSolrClient(String url)
Creates a new  
HttpSolrClient using the URL provided. | 
static Future<org.apache.solr.client.solrj.SolrClient> | 
getHttpSolrClient(String url,
                 String coreName)
Creates a new  
HttpSolrClient using the URL and core name provided. | 
static Future<org.apache.solr.client.solrj.SolrClient> | 
getHttpSolrClient(String url,
                 String coreName,
                 String configFile)
Creates a new  
HttpSolrClient using the URL, core name and configuration file name
 provided. | 
Future<org.apache.solr.client.solrj.SolrClient> | 
newClient(String core)
Requests the creation of a new  
SolrClient for a specific Solr core name. | 
public static final String DEFAULT_SCHEMA_XML
public static final String DEFAULT_SOLRCONFIG_XML
public Future<org.apache.solr.client.solrj.SolrClient> newClient(String core)
SolrClientFactorySolrClient for a specific Solr core name. Future.get() will return null if a SolrClient could not be
 created either immediately or after a retry period determined by the implementing class.
 Clients of this class should consider implementing retry logic if needed based on that return
 value.newClient in interface SolrClientFactorycore - name of the Solr core to createFuture used to retrieve the new SolrClient createdpublic static String getDefaultHttpsAddress()
public static String getDefaultHttpAddress()
public static Future<org.apache.solr.client.solrj.SolrClient> getHttpSolrClient(@Nullable String url)
HttpSolrClient using the URL provided. Uses the default Solr core name
 () and configuration file ("solrconfig.xml").url - Solr server URL. If null, defaults to the system's base URL followed by
     /solr.Future used to retrieve the new HttpSolrClient instancepublic static Future<org.apache.solr.client.solrj.SolrClient> getHttpSolrClient(@Nullable String url, String coreName)
HttpSolrClient using the URL and core name provided. Uses the default
 configuration file ("solrconfig.xml").url - Solr server URL. If null, defaults to the system's base URL followed by
     /solr.coreName - name of the Solr core to createFuture used to retrieve the new HttpSolrClient instancepublic static Future<org.apache.solr.client.solrj.SolrClient> getHttpSolrClient(@Nullable String url, String coreName, @Nullable String configFile)
HttpSolrClient using the URL, core name and configuration file name
 provided.url - Solr server URL. If null, defaults to the system's base URL followed by
     /solr.coreName - name of the Solr core to createconfigFile - configuration file name. If null, defaults to "solrconfig.xml".Future used to retrieve the new HttpSolrClient instanceThis work is licensed under a Creative Commons Attribution 4.0 International License.