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

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

Introduction

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

The text is from its open source code.

Subclass

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

Method

UpdateResponseadd(String collection, Collection docs)
Adds a collection of documents
UpdateResponseadd(Collection docs, int commitWithinMs)
Adds a collection of documents, specifying max time before they become committed
UpdateResponseadd(String collection, SolrInputDocument doc)
Adds a single document
UpdateResponseadd(SolrInputDocument doc, int commitWithinMs)
Adds a single document specifying max time before it becomes committed
UpdateResponseadd(String collection, Iterator docIterator)
Adds the documents supplied by the given iterator.
UpdateResponseadd(Collection docs)
Adds a collection of documents
UpdateResponseadd(SolrInputDocument doc)
Adds a single document Many SolrClient implementations have drastically slower indexing performance when documents are added individually.
UpdateResponseadd(Iterator docIterator)
Adds the documents supplied by the given iterator.
UpdateResponseaddBean(Object obj)
Adds a single bean The bean is converted to a SolrInputDocument by the client's org.apache.solr.client.solrj.beans.DocumentObjectBinder
UpdateResponseaddBean(String collection, Object obj)
Adds a single bean The bean is converted to a SolrInputDocument by the client's org.apache.solr.client.solrj.beans.DocumentObjectBinder

Many SolrClient implementations have drastically slower indexing performance when documents are added individually.

UpdateResponseaddBean(Object obj, int commitWithinMs)
Adds a single bean specifying max time before it becomes committed The bean is converted to a SolrInputDocument by the client's org.apache.solr.client.solrj.beans.DocumentObjectBinder
UpdateResponseaddBeans(Collection beans)
Adds a collection of beans The beans are converted to SolrInputDocument s by the client's org.apache.solr.client.solrj.beans.DocumentObjectBinder
UpdateResponseaddBeans(final Iterator beanIterator)
Adds the beans supplied by the given iterator.
UpdateResponseaddBeans(String collection, Collection beans)
Adds a collection of beans The beans are converted to SolrInputDocument s by the client's org.apache.solr.client.solrj.beans.DocumentObjectBinder
UpdateResponseaddBeans(Collection beans, int commitWithinMs)
Adds a collection of beans specifying max time before they become committed The beans are converted to SolrInputDocument s by the client's org.apache.solr.client.solrj.beans.DocumentObjectBinder
UpdateResponseaddBeans(String collection, final Iterator beanIterator)
Adds the beans supplied by the given iterator.
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, 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.
UpdateResponsecommit(boolean waitFlush, boolean waitSearcher, boolean softCommit)
Performs an explicit commit, causing pending documents to be committed for indexing Be very careful when triggering commits from the client side.
UpdateResponsecommit(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.
UpdateResponsecommit(String collection, boolean waitFlush, boolean waitSearcher, boolean softCommit)
Performs an explicit commit, causing pending documents to be committed for indexing Be very careful when triggering commits from the client side.
UpdateResponsedeleteById(String id)
Deletes a single document by unique ID.
UpdateResponsedeleteById(List ids)
Deletes a list of documents by unique ID.
UpdateResponsedeleteById(String collection, String id)
Deletes a single document by unique ID.
UpdateResponsedeleteById(String id, int commitWithinMs)
Deletes a single document by unique ID, specifying max time before commit.
UpdateResponsedeleteById(String collection, List ids)
Deletes a list of documents by unique ID.
UpdateResponsedeleteById(List ids, int commitWithinMs)
Deletes a list of documents by unique ID, specifying max time before commit.
UpdateResponsedeleteByQuery(String query)
Deletes documents from the index based on a query
UpdateResponsedeleteByQuery(String collection, String query)
Deletes documents from the index based on a query
UpdateResponsedeleteByQuery(String query, int commitWithinMs)
Deletes documents from the index based on a query, specifying max time before commit
DocumentObjectBindergetBinder()
Get the org.apache.solr.client.solrj.beans.DocumentObjectBinder for this client.
SolrDocumentgetById(String collection, String id)
Retrieves the SolrDocument associated with the given identifier.
SolrDocumentgetById(String id, SolrParams params)
Retrieves the SolrDocument associated with the given identifier and uses the SolrParams to execute the request.
SolrDocumentListgetById(String collection, Collection ids)
Retrieves the SolrDocuments associated with the given identifiers.
SolrDocumentListgetById(Collection ids, SolrParams params)
Retrieves the SolrDocuments associated with the given identifiers and uses the SolrParams to execute the request.
SolrDocumentgetById(String id)
Retrieves the SolrDocument associated with the given identifier.
SolrDocumentListgetById(Collection ids)
Retrieves the SolrDocuments associated with the given identifiers.
UpdateResponseoptimize()
Performs an explicit optimize, causing a merge of all segments to one.
UpdateResponseoptimize(boolean waitFlush, boolean waitSearcher)
Performs an explicit optimize, causing a merge of all segments to one.
UpdateResponseoptimize(String collection, boolean waitFlush, boolean waitSearcher)
Performs an explicit optimize, causing a merge of all segments to one.
UpdateResponseoptimize(boolean waitFlush, boolean waitSearcher, int maxSegments)
Performs an explicit optimize, causing a merge of all segments to one.
UpdateResponseoptimize(String collection)
Performs an explicit optimize, causing a merge of all segments to one.
SolrPingResponseping()
Issues a ping request to check if the server is alive
QueryResponsequery(SolrParams params)
Performs a query to the Solr server
QueryResponsequery(String collection, SolrParams params)
Performs a query to the Solr server
QueryResponsequery(SolrParams params, METHOD method)
Performs a query to the Solr server
QueryResponsequeryAndStreamResponse(SolrParams params, StreamingResponseCallback callback)
Query solr, and stream the results.
QueryResponsequeryAndStreamResponse(String collection, SolrParams params, StreamingResponseCallback callback)
Query solr, and stream the results.
QueryResponsequeryAndStreamResponse(String collection, SolrParams params, FastStreamingDocsCallback callback)
NamedListrequest(final SolrRequest request)
Execute a request against a Solr server
NamedListrequest(final SolrRequest request, String collection)
Execute a request against a Solr server for a given collection
UpdateResponserollback()
Performs a rollback of all non-committed documents pending.