Example usage for Java org.apache.solr.client.solrj.impl CloudSolrClient fields, constructors, methods, implement or subclass
The text is from its open source code.
String | STATE_VERSION |
CloudSolrClient(Builder builder) Create a new client object that connects to Zookeeper and is always aware of the SolrCloud state. |
UpdateResponse | add(Collection Adds a collection of documents |
UpdateResponse | add(String collection, Collection Adds a collection of documents |
void | close() |
UpdateResponse | commit() 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. |
UpdateResponse | commit(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. |
UpdateResponse | commit(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. |
void | connect() Connect to the zookeeper ensemble. |
UpdateResponse | deleteByQuery(String query) Deletes documents from the index based on a query |
SolrDocument | getById(String collection, String id) Retrieves the SolrDocument associated with the given identifier. |
ClusterStateProvider | getClusterStateProvider() |
String | getDefaultCollection() Gets the default collection for request |
LBHttpSolrClient | getLbClient() |
String | getZkHost() |
ZkStateReader | getZkStateReader() |
QueryResponse | query(SolrParams params) Performs a query to the Solr server |
NamedList | request(final SolrRequest request) Execute a request against a Solr server |
NamedList | request(SolrRequest request, String collection) |
void | setCollectionCacheTTl(int seconds) Sets the cache ttl for DocCollection Objects cached . |
void | setDefaultCollection(String collection) Sets the default collection for request |
void | setIdField(String idField) |
void | setParallelCacheRefreshes(int n) If caches are expired they are refreshed after acquiring a lock. |
void | setParallelUpdates(boolean parallelUpdates) |
void | setParser(ResponseParser processor) Note: This setter method is not thread-safe. |
void | setZkClientTimeout(int zkClientTimeout) Set the timeout to the zookeeper ensemble in ms |
void | setZkConnectTimeout(int zkConnectTimeout) Set the connect timeout to the zookeeper ensemble in ms |