public class SolrIndexUtils
extends oracle.pg.text.OracleIndexUtils
Constructor and Description |
---|
SolrIndexUtils() |
Modifier and Type | Method and Description |
---|---|
static org.apache.solr.client.solrj.impl.CloudSolrServer |
getCloudSolrServer(String solrServerUrl, String directoryName, int zkTimeout, long writeTimeout)
Gets a new CloudSolrServer object to handle operations over the index.
|
static void |
quietlyCloseCloudSolrServer(org.apache.solr.client.solrj.impl.CloudSolrServer cloudSolrServer)
Closes the specified CloudSolrServer object
|
public static org.apache.solr.client.solrj.impl.CloudSolrServer getCloudSolrServer(String solrServerUrl, String directoryName, int zkTimeout, long writeTimeout)
solrServerUrl
- the SolrCloud server URL used to connect to the SolrCloud service. E.g., http://localhost:2181/solrdirectoryName
- the name of the directoryzkTimeout
- a positive integer representing the timeout (in seconds) used to wait for a Zookeeper connection.writeTimeout
- the timeout (in secs) that is allowed to wait for a index write operation.public static void quietlyCloseCloudSolrServer(org.apache.solr.client.solrj.impl.CloudSolrServer cloudSolrServer)
cloudSolrServer
- a CloudSolrServer
objectCopyright © 2015 Oracle and/or its afflilates. All Rights Reserved.