Java org.apache.solr.client.solrj.impl CloudSolrClient fields, constructors, methods, implement or subclass

Example usage for Java org.apache.solr.client.solrj.impl CloudSolrClient fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for org.apache.solr.client.solrj.impl CloudSolrClient.

The text is from its open source code.

Subclass

org.apache.solr.client.solrj.impl.CloudSolrClient has subclasses.
Click this link to see all its subclasses.

Field

Constructor

CloudSolrClient(Builder builder)
Create a new client object that connects to Zookeeper and is always aware of the SolrCloud state.

Method

UpdateResponseadd(Collection docs)
Adds a collection of documents
UpdateResponseadd(String collection, Collection docs)
Adds a collection of documents
voidclose()
UpdateResponsecommit()
Performs an explicit commit, causing pending documents to be committed for indexing waitFlush=true and waitSearcher=true to be inline with the defaults for plain HTTP access

Be very careful when triggering commits from the client side.

UpdateResponsecommit(String collection)
Performs an explicit commit, causing pending documents to be committed for indexing waitFlush=true and waitSearcher=true to be inline with the defaults for plain HTTP access

Be very careful when triggering commits from the client side.

UpdateResponsecommit(String collection, boolean waitFlush, boolean waitSearcher)
Performs an explicit commit, causing pending documents to be committed for indexing Be very careful when triggering commits from the client side.
voidconnect()
Connect to the zookeeper ensemble.
UpdateResponsedeleteByQuery(String query)
Deletes documents from the index based on a query
SolrDocumentgetById(String collection, String id)
Retrieves the SolrDocument associated with the given identifier.
ClusterStateProvidergetClusterStateProvider()
StringgetDefaultCollection()
Gets the default collection for request
LBHttpSolrClientgetLbClient()
StringgetZkHost()
ZkStateReadergetZkStateReader()
QueryResponsequery(SolrParams params)
Performs a query to the Solr server
NamedListrequest(final SolrRequest request)
Execute a request against a Solr server
NamedListrequest(SolrRequest request, String collection)
voidsetCollectionCacheTTl(int seconds)
Sets the cache ttl for DocCollection Objects cached .
voidsetDefaultCollection(String collection)
Sets the default collection for request
voidsetIdField(String idField)
voidsetParallelCacheRefreshes(int n)
If caches are expired they are refreshed after acquiring a lock.
voidsetParallelUpdates(boolean parallelUpdates)
voidsetParser(ResponseParser processor)
Note: This setter method is not thread-safe.
voidsetZkClientTimeout(int zkClientTimeout)
Set the timeout to the zookeeper ensemble in ms
voidsetZkConnectTimeout(int zkConnectTimeout)
Set the connect timeout to the zookeeper ensemble in ms