Example usage for Java org.apache.solr.client.solrj SolrClient fields, constructors, methods, implement or subclass
The text is from its open source code.
UpdateResponse | add(String collection, Collection Adds a collection of documents |
UpdateResponse | add(Collection Adds a collection of documents, specifying max time before they become committed |
UpdateResponse | add(String collection, SolrInputDocument doc) Adds a single document |
UpdateResponse | add(SolrInputDocument doc, int commitWithinMs) Adds a single document specifying max time before it becomes committed |
UpdateResponse | add(String collection, Iterator Adds the documents supplied by the given iterator. |
UpdateResponse | add(Collection Adds a collection of documents |
UpdateResponse | add(SolrInputDocument doc) Adds a single document Many SolrClient implementations have drastically slower indexing performance when documents are added individually. |
UpdateResponse | add(Iterator Adds the documents supplied by the given iterator. |
UpdateResponse | addBean(Object obj) Adds a single bean The bean is converted to a SolrInputDocument by the client's org.apache.solr.client.solrj.beans.DocumentObjectBinder |
UpdateResponse | addBean(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. |
UpdateResponse | addBean(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 |
UpdateResponse | addBeans(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 |
UpdateResponse | addBeans(final Iterator> beanIterator) Adds the beans supplied by the given iterator. |
UpdateResponse | addBeans(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 |
UpdateResponse | addBeans(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 |
UpdateResponse | addBeans(String collection, final Iterator> beanIterator) Adds the beans supplied by the given iterator. |
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, 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. |
UpdateResponse | commit(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. |
UpdateResponse | commit(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. |
UpdateResponse | commit(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. |
UpdateResponse | deleteById(String id) Deletes a single document by unique ID. |
UpdateResponse | deleteById(List Deletes a list of documents by unique ID. |
UpdateResponse | deleteById(String collection, String id) Deletes a single document by unique ID. |
UpdateResponse | deleteById(String id, int commitWithinMs) Deletes a single document by unique ID, specifying max time before commit. |
UpdateResponse | deleteById(String collection, List Deletes a list of documents by unique ID. |
UpdateResponse | deleteById(List Deletes a list of documents by unique ID, specifying max time before commit. |
UpdateResponse | deleteByQuery(String query) Deletes documents from the index based on a query |
UpdateResponse | deleteByQuery(String collection, String query) Deletes documents from the index based on a query |
UpdateResponse | deleteByQuery(String query, int commitWithinMs) Deletes documents from the index based on a query, specifying max time before commit |
DocumentObjectBinder | getBinder() Get the org.apache.solr.client.solrj.beans.DocumentObjectBinder for this client. |
SolrDocument | getById(String collection, String id) Retrieves the SolrDocument associated with the given identifier. |
SolrDocument | getById(String id, SolrParams params) Retrieves the SolrDocument associated with the given identifier and uses the SolrParams to execute the request. |
SolrDocumentList | getById(String collection, Collection Retrieves the SolrDocuments associated with the given identifiers. |
SolrDocumentList | getById(Collection Retrieves the SolrDocuments associated with the given identifiers and uses the SolrParams to execute the request. |
SolrDocument | getById(String id) Retrieves the SolrDocument associated with the given identifier. |
SolrDocumentList | getById(Collection Retrieves the SolrDocuments associated with the given identifiers. |
UpdateResponse | optimize() Performs an explicit optimize, causing a merge of all segments to one. |
UpdateResponse | optimize(boolean waitFlush, boolean waitSearcher) Performs an explicit optimize, causing a merge of all segments to one. |
UpdateResponse | optimize(String collection, boolean waitFlush, boolean waitSearcher) Performs an explicit optimize, causing a merge of all segments to one. |
UpdateResponse | optimize(boolean waitFlush, boolean waitSearcher, int maxSegments) Performs an explicit optimize, causing a merge of all segments to one. |
UpdateResponse | optimize(String collection) Performs an explicit optimize, causing a merge of all segments to one. |
SolrPingResponse | ping() Issues a ping request to check if the server is alive |
QueryResponse | query(SolrParams params) Performs a query to the Solr server |
QueryResponse | query(String collection, SolrParams params) Performs a query to the Solr server |
QueryResponse | query(SolrParams params, METHOD method) Performs a query to the Solr server |
QueryResponse | queryAndStreamResponse(SolrParams params, StreamingResponseCallback callback) Query solr, and stream the results. |
QueryResponse | queryAndStreamResponse(String collection, SolrParams params, StreamingResponseCallback callback) Query solr, and stream the results. |
QueryResponse | queryAndStreamResponse(String collection, SolrParams params, FastStreamingDocsCallback callback) |
NamedList | request(final SolrRequest request) Execute a request against a Solr server |
NamedList | request(final SolrRequest request, String collection) Execute a request against a Solr server for a given collection |
UpdateResponse | rollback() Performs a rollback of all non-committed documents pending. |