User-Agent String.
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
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
to Solr collection to add documents to
the input bean
an { @link org.apache.solr.client.solrj.response.UpdateResponse} from the server
Adds the beans supplied by the given iterator.
Adds the beans supplied by the given iterator.
the iterator which returns Beans
an { @link org.apache.solr.client.solrj.response.UpdateResponse} from the server
Adds the beans supplied by the given iterator.
Adds the beans supplied by the given iterator.
the Solr collection to add the documents to
the iterator which returns Beans
an { @link org.apache.solr.client.solrj.response.UpdateResponse} from the server
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
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
the Solr collection to add documents to
the collection of beans
max time (in ms) before a commit will happen
an { @link org.apache.solr.client.solrj.response.UpdateResponse} from the server
Adds a single document specifying max time before it becomes committed
Adds a single document specifying max time before it becomes committed
the Solr collection to add the document to
the input document
max time (in ms) before a commit will happen
an { @link org.apache.solr.client.solrj.response.UpdateResponse} from the server
Adds the documents supplied by the given iterator.
Adds the documents supplied by the given iterator.
the iterator which returns SolrInputDocument instances
an { @link org.apache.solr.client.solrj.response.UpdateResponse} from the server
Adds the documents supplied by the given iterator.
Adds the documents supplied by the given iterator.
the Solr collection to add documents to
the iterator which returns SolrInputDocument instances
an { @link org.apache.solr.client.solrj.response.UpdateResponse} from the server
Adds a collection of documents, specifying max time before they become committed
Adds a collection of documents, specifying max time before they become committed
the Solr collection to add documents to
the collection of documents
max time (in ms) before a commit will happen
an { @link org.apache.solr.client.solrj.response.UpdateResponse} from the server
Performs an explicit commit, causing pending documents to be committed for indexing
Performs an explicit commit, causing pending documents to be committed for indexing
the Solr collection to send the commit to
block until index changes are flushed to disk
block until a new searcher is opened and registered as the main query searcher, making the changes visible
makes index changes visible while neither fsync-ing index files nor writing a new index descriptor
an { @link org.apache.solr.client.solrj.response.UpdateResponse} containing the response from the server
Deletes a single document by unique ID, specifying max time before commit
Deletes a single document by unique ID, specifying max time before commit
the Solr collection to delete the document from
the ID of the document to delete
max time (in ms) before a commit will happen
an { @link org.apache.solr.client.solrj.response.UpdateResponse} containing the response from the server
Deletes a list of documents by unique ID, specifying max time before commit
Deletes a list of documents by unique ID, specifying max time before commit
the Solr collection to delete the documents from
the list of document IDs to delete
max time (in ms) before a commit will happen
an { @link org.apache.solr.client.solrj.response.UpdateResponse} containing the response from the server
Deletes documents from the index based on a query, specifying max time before commit
Deletes documents from the index based on a query, specifying max time before commit
the Solr collection to delete the documents from
the query expressing what documents to delete
max time (in ms) before a commit will happen
an { @link org.apache.solr.client.solrj.response.UpdateResponse} containing the response from the server
Performs a request to a solr server.
Performs a request to a solr server.
the request to send to solr.
Performs a request to a solr server taking the preferred server into account if provided.
Performs a request to a solr server taking the preferred server into account if provided.
the request to send to the solr server.
the server that should be preferred to process the request. Specific LoadBalancer implementations have to support this and might add their own semantics.
the response and the server that handled the request.
Retrieves the SolrDocument associated with the given identifier and uses the SolrParams to execute the request.
Retrieves the SolrDocument associated with the given identifier and uses the SolrParams to execute the request.
the Solr collection to query
the id
additional parameters to add to the query
retrieved SolrDocument, or None if no document is found.
Retrieves the SolrDocuments associated with the given identifiers and uses the SolrParams to execute the request.
Retrieves the SolrDocuments associated with the given identifiers and uses the SolrParams to execute the request.
If a document was not found, it will not be added to the SolrDocumentList.
the Solr collection to query
the ids
additional parameters to add to the query
a SolrDocumentList
Performs an explicit optimize, causing a merge of all segments to one.
Performs an explicit optimize, causing a merge of all segments to one. Note: In most cases it is not required to do explicit optimize
the Solr collection to send the optimize to
block until index changes are flushed to disk
block until a new searcher is opened and registered as the main query searcher, making the changes visible
optimizes down to at most this number of segments
an { @link org.apache.solr.client.solrj.response.UpdateResponse} containing the response from the server
Issues a ping request to check if the server is alive
Issues a ping request to check if the server is alive
a { @link org.apache.solr.client.solrj.response.SolrPingResponse} containing the response from the server
Performs a query to the Solr server
Performs a query to the Solr server
the Solr collection to query
an object holding all key/value parameters to send along the request
specifies the HTTP method to use for the request, such as GET or POST
a { @link org.apache.solr.client.solrj.response.QueryResponse} containing the response from the server
Performs a query to the Solr server
Performs a query to the Solr server
an object holding all key/value parameters to send along the request
specifies the HTTP method to use for the request, such as GET or POST
a { @link org.apache.solr.client.solrj.response.QueryResponse} containing the response from the server
Performs a query to the Solr server
Performs a query to the Solr server
an object holding all key/value parameters to send along the request
a { @link org.apache.solr.client.solrj.response.QueryResponse} containing the response from the server
Query solr, and stream the results.
Query solr, and stream the results. Unlike the standard query, this will send events for each Document rather then add them to the QueryResponse.
Although this function returns a 'QueryResponse' it should be used with care since it excludes anything that was passed to callback. Also note that future version may pass even more info to the callback and may not return the results in the QueryResponse.
the Solr collection to query
an object holding all key/value parameters to send along the request
the callback to stream results to
a { @link org.apache.solr.client.solrj.response.QueryResponse} containing the response from the server
Performs a query to a solr server taking the preferred server into account if provided.
Performs a query to a solr server taking the preferred server into account if provided.
the query to send to the solr server.
the server that should be preferred to process the query. Specific LoadBalancer implementations have to support this and might add their own semantics.
the response and the server that handled the query.
Performs a rollback of all non-committed documents pending.
Performs a rollback of all non-committed documents pending. Note that this is not a true rollback as in databases. Content you have previously added may have been committed due to autoCommit, buffer full, other client performing a commit etc.
the Solr collection to send the rollback to
an { @link org.apache.solr.client.solrj.response.UpdateResponse} containing the response from the server
Closes the http client (asynchronously) if it was not provided but created by this class.
Async, non-blocking Solr Server that allows to make requests to Solr. The usage shall be similar to the solrj SolrServer, so request returns a future of a
SolrResponse
.