Class DelegatingHttpSolrClient
java.lang.Object
org.apache.solr.client.solrj.SolrClient
org.broadleafcommerce.core.search.service.solr.DelegatingHttpSolrClient
- All Implemented Interfaces:
Closeable,Serializable,AutoCloseable
public class DelegatingHttpSolrClient
extends org.apache.solr.client.solrj.SolrClient
Wrapper implementation of Solr that delegates to an
HttpSolrClient. With older versions of SolrJ, there was no ability to specify a
a collection on an HttpSolrClient. As a result, you needed two different clients, one for each collection. For example, you might have
a client with the base URL: http://localhost:8983/solr/catalogs and another with the base URL of http://localhost:8983/solr/catalogs_reindex.
What this class allows for is a "defaultCollection". If the base URL is http://localhost:8983/solr for example, and the default collection is "catalog", then a call
to {@link DelegatingHttpSolrClient#query(new SolrQuery("foo:bar")} will search the "catalog" index, or http://localhost:8983/solr/catalogs. Alternatively, a call to
{@link DelegatingHttpSolrClient#query("catalogs_reindex", new SolrQuery("foo:bar"))} will search the "catalogs_reindex" index, or http://localhost:8983/solr/catalogs_reindex.
The same thing goes for writes. This class simply delegates to the delegate passed into the constructor.
- Author:
- Kelly Tisdell
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDelegatingHttpSolrClient(org.apache.solr.client.solrj.impl.HttpSolrClient delegate) DelegatingHttpSolrClient(org.apache.solr.client.solrj.impl.HttpSolrClient delegate, String defaultCollection) -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.solr.client.solrj.response.UpdateResponseadd(String collection, Collection<org.apache.solr.common.SolrInputDocument> docs) org.apache.solr.client.solrj.response.UpdateResponseadd(String collection, Collection<org.apache.solr.common.SolrInputDocument> docs, int commitWithinMs) org.apache.solr.client.solrj.response.UpdateResponseorg.apache.solr.client.solrj.response.UpdateResponseorg.apache.solr.client.solrj.response.UpdateResponseorg.apache.solr.client.solrj.response.UpdateResponseadd(Collection<org.apache.solr.common.SolrInputDocument> docs) org.apache.solr.client.solrj.response.UpdateResponseadd(Collection<org.apache.solr.common.SolrInputDocument> docs, int commitWithinMs) org.apache.solr.client.solrj.response.UpdateResponseorg.apache.solr.client.solrj.response.UpdateResponseadd(org.apache.solr.common.SolrInputDocument doc) org.apache.solr.client.solrj.response.UpdateResponseadd(org.apache.solr.common.SolrInputDocument doc, int commitWithinMs) org.apache.solr.client.solrj.response.UpdateResponseorg.apache.solr.client.solrj.response.UpdateResponseorg.apache.solr.client.solrj.response.UpdateResponseorg.apache.solr.client.solrj.response.UpdateResponseorg.apache.solr.client.solrj.response.UpdateResponseaddBeans(String collection, Collection<?> beans) org.apache.solr.client.solrj.response.UpdateResponseaddBeans(String collection, Collection<?> beans, int commitWithinMs) org.apache.solr.client.solrj.response.UpdateResponseorg.apache.solr.client.solrj.response.UpdateResponseaddBeans(Collection<?> beans) org.apache.solr.client.solrj.response.UpdateResponseaddBeans(Collection<?> beans, int commitWithinMs) org.apache.solr.client.solrj.response.UpdateResponsevoidclose()org.apache.solr.client.solrj.response.UpdateResponsecommit()org.apache.solr.client.solrj.response.UpdateResponsecommit(boolean waitFlush, boolean waitSearcher) org.apache.solr.client.solrj.response.UpdateResponsecommit(boolean waitFlush, boolean waitSearcher, boolean softCommit) org.apache.solr.client.solrj.response.UpdateResponseorg.apache.solr.client.solrj.response.UpdateResponseorg.apache.solr.client.solrj.response.UpdateResponseorg.apache.solr.client.solrj.response.UpdateResponsedeleteById(String id) org.apache.solr.client.solrj.response.UpdateResponsedeleteById(String id, int commitWithinMs) org.apache.solr.client.solrj.response.UpdateResponsedeleteById(String collection, String id) org.apache.solr.client.solrj.response.UpdateResponsedeleteById(String collection, String id, int commitWithinMs) org.apache.solr.client.solrj.response.UpdateResponsedeleteById(String collection, List<String> ids) org.apache.solr.client.solrj.response.UpdateResponsedeleteById(String collection, List<String> ids, int commitWithinMs) org.apache.solr.client.solrj.response.UpdateResponsedeleteById(List<String> ids) org.apache.solr.client.solrj.response.UpdateResponsedeleteById(List<String> ids, int commitWithinMs) org.apache.solr.client.solrj.response.UpdateResponsedeleteByQuery(String query) org.apache.solr.client.solrj.response.UpdateResponsedeleteByQuery(String query, int commitWithinMs) org.apache.solr.client.solrj.response.UpdateResponsedeleteByQuery(String collection, String query) org.apache.solr.client.solrj.response.UpdateResponsedeleteByQuery(String collection, String query, int commitWithinMs) org.apache.solr.client.solrj.beans.DocumentObjectBinderorg.apache.solr.common.SolrDocumentorg.apache.solr.common.SolrDocumentorg.apache.solr.common.SolrDocumentorg.apache.solr.common.SolrDocumentListgetById(String collection, Collection<String> ids) org.apache.solr.common.SolrDocumentListgetById(String collection, Collection<String> ids, org.apache.solr.common.params.SolrParams params) org.apache.solr.common.SolrDocumentorg.apache.solr.common.SolrDocumentListgetById(Collection<String> ids) org.apache.solr.common.SolrDocumentListgetById(Collection<String> ids, org.apache.solr.common.params.SolrParams params) org.apache.solr.client.solrj.impl.HttpSolrClientorg.apache.solr.client.solrj.response.UpdateResponseoptimize()org.apache.solr.client.solrj.response.UpdateResponseoptimize(boolean waitFlush, boolean waitSearcher) org.apache.solr.client.solrj.response.UpdateResponseoptimize(boolean waitFlush, boolean waitSearcher, int maxSegments) org.apache.solr.client.solrj.response.UpdateResponseorg.apache.solr.client.solrj.response.UpdateResponseorg.apache.solr.client.solrj.response.UpdateResponseorg.apache.solr.client.solrj.response.SolrPingResponseping()org.apache.solr.client.solrj.response.QueryResponseorg.apache.solr.client.solrj.response.QueryResponsequery(String collection, org.apache.solr.common.params.SolrParams params, org.apache.solr.client.solrj.SolrRequest.METHOD method) org.apache.solr.client.solrj.response.QueryResponsequery(org.apache.solr.common.params.SolrParams params) org.apache.solr.client.solrj.response.QueryResponsequery(org.apache.solr.common.params.SolrParams params, org.apache.solr.client.solrj.SolrRequest.METHOD method) org.apache.solr.client.solrj.response.QueryResponsequeryAndStreamResponse(String collection, org.apache.solr.common.params.SolrParams params, org.apache.solr.client.solrj.StreamingResponseCallback callback) org.apache.solr.client.solrj.response.QueryResponsequeryAndStreamResponse(org.apache.solr.common.params.SolrParams params, org.apache.solr.client.solrj.StreamingResponseCallback callback) org.apache.solr.common.util.NamedList<Object>org.apache.solr.client.solrj.response.UpdateResponserollback()org.apache.solr.client.solrj.response.UpdateResponseMethods inherited from class org.apache.solr.client.solrj.SolrClient
getContext, ping, queryAndStreamResponse, request
-
Field Details
-
delegate
protected final org.apache.solr.client.solrj.impl.HttpSolrClient delegate -
defaultCollection
-
defaultCollectionPath
-
-
Constructor Details
-
DelegatingHttpSolrClient
public DelegatingHttpSolrClient(org.apache.solr.client.solrj.impl.HttpSolrClient delegate) -
DelegatingHttpSolrClient
public DelegatingHttpSolrClient(org.apache.solr.client.solrj.impl.HttpSolrClient delegate, String defaultCollection)
-
-
Method Details
-
request
public org.apache.solr.common.util.NamedList<Object> request(org.apache.solr.client.solrj.SolrRequest request, String collection) throws org.apache.solr.client.solrj.SolrServerException, IOException - Specified by:
requestin classorg.apache.solr.client.solrj.SolrClient- Throws:
org.apache.solr.client.solrj.SolrServerExceptionIOException
-
add
public org.apache.solr.client.solrj.response.UpdateResponse add(String collection, Collection<org.apache.solr.common.SolrInputDocument> docs) throws org.apache.solr.client.solrj.SolrServerException, IOException - Overrides:
addin classorg.apache.solr.client.solrj.SolrClient- Throws:
org.apache.solr.client.solrj.SolrServerExceptionIOException
-
add
public org.apache.solr.client.solrj.response.UpdateResponse add(Collection<org.apache.solr.common.SolrInputDocument> docs) throws org.apache.solr.client.solrj.SolrServerException, IOException - Overrides:
addin classorg.apache.solr.client.solrj.SolrClient- Throws:
org.apache.solr.client.solrj.SolrServerExceptionIOException
-
add
public org.apache.solr.client.solrj.response.UpdateResponse add(String collection, Collection<org.apache.solr.common.SolrInputDocument> docs, int commitWithinMs) throws org.apache.solr.client.solrj.SolrServerException, IOException - Overrides:
addin classorg.apache.solr.client.solrj.SolrClient- Throws:
org.apache.solr.client.solrj.SolrServerExceptionIOException
-
add
public org.apache.solr.client.solrj.response.UpdateResponse add(Collection<org.apache.solr.common.SolrInputDocument> docs, int commitWithinMs) throws org.apache.solr.client.solrj.SolrServerException, IOException - Overrides:
addin classorg.apache.solr.client.solrj.SolrClient- Throws:
org.apache.solr.client.solrj.SolrServerExceptionIOException
-
add
public org.apache.solr.client.solrj.response.UpdateResponse add(String collection, org.apache.solr.common.SolrInputDocument doc) throws org.apache.solr.client.solrj.SolrServerException, IOException - Overrides:
addin classorg.apache.solr.client.solrj.SolrClient- Throws:
org.apache.solr.client.solrj.SolrServerExceptionIOException
-
add
public org.apache.solr.client.solrj.response.UpdateResponse add(org.apache.solr.common.SolrInputDocument doc) throws org.apache.solr.client.solrj.SolrServerException, IOException - Overrides:
addin classorg.apache.solr.client.solrj.SolrClient- Throws:
org.apache.solr.client.solrj.SolrServerExceptionIOException
-
add
public org.apache.solr.client.solrj.response.UpdateResponse add(String collection, org.apache.solr.common.SolrInputDocument doc, int commitWithinMs) throws org.apache.solr.client.solrj.SolrServerException, IOException - Overrides:
addin classorg.apache.solr.client.solrj.SolrClient- Throws:
org.apache.solr.client.solrj.SolrServerExceptionIOException
-
add
public org.apache.solr.client.solrj.response.UpdateResponse add(org.apache.solr.common.SolrInputDocument doc, int commitWithinMs) throws org.apache.solr.client.solrj.SolrServerException, IOException - Overrides:
addin classorg.apache.solr.client.solrj.SolrClient- Throws:
org.apache.solr.client.solrj.SolrServerExceptionIOException
-
add
public org.apache.solr.client.solrj.response.UpdateResponse add(String collection, Iterator<org.apache.solr.common.SolrInputDocument> docIterator) throws org.apache.solr.client.solrj.SolrServerException, IOException - Overrides:
addin classorg.apache.solr.client.solrj.SolrClient- Throws:
org.apache.solr.client.solrj.SolrServerExceptionIOException
-
add
public org.apache.solr.client.solrj.response.UpdateResponse add(Iterator<org.apache.solr.common.SolrInputDocument> docIterator) throws org.apache.solr.client.solrj.SolrServerException, IOException - Overrides:
addin classorg.apache.solr.client.solrj.SolrClient- Throws:
org.apache.solr.client.solrj.SolrServerExceptionIOException
-
addBean
public org.apache.solr.client.solrj.response.UpdateResponse addBean(String collection, Object obj) throws IOException, org.apache.solr.client.solrj.SolrServerException - Overrides:
addBeanin classorg.apache.solr.client.solrj.SolrClient- Throws:
IOExceptionorg.apache.solr.client.solrj.SolrServerException
-
addBean
public org.apache.solr.client.solrj.response.UpdateResponse addBean(Object obj) throws IOException, org.apache.solr.client.solrj.SolrServerException - Overrides:
addBeanin classorg.apache.solr.client.solrj.SolrClient- Throws:
IOExceptionorg.apache.solr.client.solrj.SolrServerException
-
addBean
public org.apache.solr.client.solrj.response.UpdateResponse addBean(String collection, Object obj, int commitWithinMs) throws IOException, org.apache.solr.client.solrj.SolrServerException - Overrides:
addBeanin classorg.apache.solr.client.solrj.SolrClient- Throws:
IOExceptionorg.apache.solr.client.solrj.SolrServerException
-
addBean
public org.apache.solr.client.solrj.response.UpdateResponse addBean(Object obj, int commitWithinMs) throws IOException, org.apache.solr.client.solrj.SolrServerException - Overrides:
addBeanin classorg.apache.solr.client.solrj.SolrClient- Throws:
IOExceptionorg.apache.solr.client.solrj.SolrServerException
-
addBeans
public org.apache.solr.client.solrj.response.UpdateResponse addBeans(String collection, Collection<?> beans) throws org.apache.solr.client.solrj.SolrServerException, IOException - Overrides:
addBeansin classorg.apache.solr.client.solrj.SolrClient- Throws:
org.apache.solr.client.solrj.SolrServerExceptionIOException
-
addBeans
public org.apache.solr.client.solrj.response.UpdateResponse addBeans(Collection<?> beans) throws org.apache.solr.client.solrj.SolrServerException, IOException - Overrides:
addBeansin classorg.apache.solr.client.solrj.SolrClient- Throws:
org.apache.solr.client.solrj.SolrServerExceptionIOException
-
addBeans
public org.apache.solr.client.solrj.response.UpdateResponse addBeans(String collection, Collection<?> beans, int commitWithinMs) throws org.apache.solr.client.solrj.SolrServerException, IOException - Overrides:
addBeansin classorg.apache.solr.client.solrj.SolrClient- Throws:
org.apache.solr.client.solrj.SolrServerExceptionIOException
-
addBeans
public org.apache.solr.client.solrj.response.UpdateResponse addBeans(Collection<?> beans, int commitWithinMs) throws org.apache.solr.client.solrj.SolrServerException, IOException - Overrides:
addBeansin classorg.apache.solr.client.solrj.SolrClient- Throws:
org.apache.solr.client.solrj.SolrServerExceptionIOException
-
addBeans
public org.apache.solr.client.solrj.response.UpdateResponse addBeans(String collection, Iterator<?> beanIterator) throws org.apache.solr.client.solrj.SolrServerException, IOException - Overrides:
addBeansin classorg.apache.solr.client.solrj.SolrClient- Throws:
org.apache.solr.client.solrj.SolrServerExceptionIOException
-
addBeans
public org.apache.solr.client.solrj.response.UpdateResponse addBeans(Iterator<?> beanIterator) throws org.apache.solr.client.solrj.SolrServerException, IOException - Overrides:
addBeansin classorg.apache.solr.client.solrj.SolrClient- Throws:
org.apache.solr.client.solrj.SolrServerExceptionIOException
-
commit
public org.apache.solr.client.solrj.response.UpdateResponse commit(String collection) throws org.apache.solr.client.solrj.SolrServerException, IOException - Overrides:
commitin classorg.apache.solr.client.solrj.SolrClient- Throws:
org.apache.solr.client.solrj.SolrServerExceptionIOException
-
commit
public org.apache.solr.client.solrj.response.UpdateResponse commit() throws org.apache.solr.client.solrj.SolrServerException, IOException- Overrides:
commitin classorg.apache.solr.client.solrj.SolrClient- Throws:
org.apache.solr.client.solrj.SolrServerExceptionIOException
-
commit
public org.apache.solr.client.solrj.response.UpdateResponse commit(String collection, boolean waitFlush, boolean waitSearcher) throws org.apache.solr.client.solrj.SolrServerException, IOException - Overrides:
commitin classorg.apache.solr.client.solrj.SolrClient- Throws:
org.apache.solr.client.solrj.SolrServerExceptionIOException
-
commit
public org.apache.solr.client.solrj.response.UpdateResponse commit(boolean waitFlush, boolean waitSearcher) throws org.apache.solr.client.solrj.SolrServerException, IOException - Overrides:
commitin classorg.apache.solr.client.solrj.SolrClient- Throws:
org.apache.solr.client.solrj.SolrServerExceptionIOException
-
commit
public org.apache.solr.client.solrj.response.UpdateResponse commit(String collection, boolean waitFlush, boolean waitSearcher, boolean softCommit) throws org.apache.solr.client.solrj.SolrServerException, IOException - Overrides:
commitin classorg.apache.solr.client.solrj.SolrClient- Throws:
org.apache.solr.client.solrj.SolrServerExceptionIOException
-
commit
public org.apache.solr.client.solrj.response.UpdateResponse commit(boolean waitFlush, boolean waitSearcher, boolean softCommit) throws org.apache.solr.client.solrj.SolrServerException, IOException - Overrides:
commitin classorg.apache.solr.client.solrj.SolrClient- Throws:
org.apache.solr.client.solrj.SolrServerExceptionIOException
-
optimize
public org.apache.solr.client.solrj.response.UpdateResponse optimize(String collection) throws org.apache.solr.client.solrj.SolrServerException, IOException - Overrides:
optimizein classorg.apache.solr.client.solrj.SolrClient- Throws:
org.apache.solr.client.solrj.SolrServerExceptionIOException
-
optimize
public org.apache.solr.client.solrj.response.UpdateResponse optimize() throws org.apache.solr.client.solrj.SolrServerException, IOException- Overrides:
optimizein classorg.apache.solr.client.solrj.SolrClient- Throws:
org.apache.solr.client.solrj.SolrServerExceptionIOException
-
optimize
public org.apache.solr.client.solrj.response.UpdateResponse optimize(String collection, boolean waitFlush, boolean waitSearcher) throws org.apache.solr.client.solrj.SolrServerException, IOException - Overrides:
optimizein classorg.apache.solr.client.solrj.SolrClient- Throws:
org.apache.solr.client.solrj.SolrServerExceptionIOException
-
optimize
public org.apache.solr.client.solrj.response.UpdateResponse optimize(boolean waitFlush, boolean waitSearcher) throws org.apache.solr.client.solrj.SolrServerException, IOException - Overrides:
optimizein classorg.apache.solr.client.solrj.SolrClient- Throws:
org.apache.solr.client.solrj.SolrServerExceptionIOException
-
optimize
public org.apache.solr.client.solrj.response.UpdateResponse optimize(String collection, boolean waitFlush, boolean waitSearcher, int maxSegments) throws org.apache.solr.client.solrj.SolrServerException, IOException - Overrides:
optimizein classorg.apache.solr.client.solrj.SolrClient- Throws:
org.apache.solr.client.solrj.SolrServerExceptionIOException
-
optimize
public org.apache.solr.client.solrj.response.UpdateResponse optimize(boolean waitFlush, boolean waitSearcher, int maxSegments) throws org.apache.solr.client.solrj.SolrServerException, IOException - Overrides:
optimizein classorg.apache.solr.client.solrj.SolrClient- Throws:
org.apache.solr.client.solrj.SolrServerExceptionIOException
-
rollback
public org.apache.solr.client.solrj.response.UpdateResponse rollback(String collection) throws org.apache.solr.client.solrj.SolrServerException, IOException - Overrides:
rollbackin classorg.apache.solr.client.solrj.SolrClient- Throws:
org.apache.solr.client.solrj.SolrServerExceptionIOException
-
rollback
public org.apache.solr.client.solrj.response.UpdateResponse rollback() throws org.apache.solr.client.solrj.SolrServerException, IOException- Overrides:
rollbackin classorg.apache.solr.client.solrj.SolrClient- Throws:
org.apache.solr.client.solrj.SolrServerExceptionIOException
-
deleteById
public org.apache.solr.client.solrj.response.UpdateResponse deleteById(String collection, String id) throws org.apache.solr.client.solrj.SolrServerException, IOException - Overrides:
deleteByIdin classorg.apache.solr.client.solrj.SolrClient- Throws:
org.apache.solr.client.solrj.SolrServerExceptionIOException
-
deleteById
public org.apache.solr.client.solrj.response.UpdateResponse deleteById(String id) throws org.apache.solr.client.solrj.SolrServerException, IOException - Overrides:
deleteByIdin classorg.apache.solr.client.solrj.SolrClient- Throws:
org.apache.solr.client.solrj.SolrServerExceptionIOException
-
deleteById
public org.apache.solr.client.solrj.response.UpdateResponse deleteById(String collection, String id, int commitWithinMs) throws org.apache.solr.client.solrj.SolrServerException, IOException - Overrides:
deleteByIdin classorg.apache.solr.client.solrj.SolrClient- Throws:
org.apache.solr.client.solrj.SolrServerExceptionIOException
-
deleteById
public org.apache.solr.client.solrj.response.UpdateResponse deleteById(String id, int commitWithinMs) throws org.apache.solr.client.solrj.SolrServerException, IOException - Overrides:
deleteByIdin classorg.apache.solr.client.solrj.SolrClient- Throws:
org.apache.solr.client.solrj.SolrServerExceptionIOException
-
deleteById
public org.apache.solr.client.solrj.response.UpdateResponse deleteById(String collection, List<String> ids) throws org.apache.solr.client.solrj.SolrServerException, IOException - Overrides:
deleteByIdin classorg.apache.solr.client.solrj.SolrClient- Throws:
org.apache.solr.client.solrj.SolrServerExceptionIOException
-
deleteById
public org.apache.solr.client.solrj.response.UpdateResponse deleteById(List<String> ids) throws org.apache.solr.client.solrj.SolrServerException, IOException - Overrides:
deleteByIdin classorg.apache.solr.client.solrj.SolrClient- Throws:
org.apache.solr.client.solrj.SolrServerExceptionIOException
-
deleteById
public org.apache.solr.client.solrj.response.UpdateResponse deleteById(String collection, List<String> ids, int commitWithinMs) throws org.apache.solr.client.solrj.SolrServerException, IOException - Overrides:
deleteByIdin classorg.apache.solr.client.solrj.SolrClient- Throws:
org.apache.solr.client.solrj.SolrServerExceptionIOException
-
deleteById
public org.apache.solr.client.solrj.response.UpdateResponse deleteById(List<String> ids, int commitWithinMs) throws org.apache.solr.client.solrj.SolrServerException, IOException - Overrides:
deleteByIdin classorg.apache.solr.client.solrj.SolrClient- Throws:
org.apache.solr.client.solrj.SolrServerExceptionIOException
-
deleteByQuery
public org.apache.solr.client.solrj.response.UpdateResponse deleteByQuery(String collection, String query) throws org.apache.solr.client.solrj.SolrServerException, IOException - Overrides:
deleteByQueryin classorg.apache.solr.client.solrj.SolrClient- Throws:
org.apache.solr.client.solrj.SolrServerExceptionIOException
-
deleteByQuery
public org.apache.solr.client.solrj.response.UpdateResponse deleteByQuery(String query) throws org.apache.solr.client.solrj.SolrServerException, IOException - Overrides:
deleteByQueryin classorg.apache.solr.client.solrj.SolrClient- Throws:
org.apache.solr.client.solrj.SolrServerExceptionIOException
-
deleteByQuery
public org.apache.solr.client.solrj.response.UpdateResponse deleteByQuery(String collection, String query, int commitWithinMs) throws org.apache.solr.client.solrj.SolrServerException, IOException - Overrides:
deleteByQueryin classorg.apache.solr.client.solrj.SolrClient- Throws:
org.apache.solr.client.solrj.SolrServerExceptionIOException
-
deleteByQuery
public org.apache.solr.client.solrj.response.UpdateResponse deleteByQuery(String query, int commitWithinMs) throws org.apache.solr.client.solrj.SolrServerException, IOException - Overrides:
deleteByQueryin classorg.apache.solr.client.solrj.SolrClient- Throws:
org.apache.solr.client.solrj.SolrServerExceptionIOException
-
ping
public org.apache.solr.client.solrj.response.SolrPingResponse ping() throws org.apache.solr.client.solrj.SolrServerException, IOException- Overrides:
pingin classorg.apache.solr.client.solrj.SolrClient- Throws:
org.apache.solr.client.solrj.SolrServerExceptionIOException
-
query
public org.apache.solr.client.solrj.response.QueryResponse query(String collection, org.apache.solr.common.params.SolrParams params) throws org.apache.solr.client.solrj.SolrServerException, IOException - Overrides:
queryin classorg.apache.solr.client.solrj.SolrClient- Throws:
org.apache.solr.client.solrj.SolrServerExceptionIOException
-
query
public org.apache.solr.client.solrj.response.QueryResponse query(org.apache.solr.common.params.SolrParams params) throws org.apache.solr.client.solrj.SolrServerException, IOException - Overrides:
queryin classorg.apache.solr.client.solrj.SolrClient- Throws:
org.apache.solr.client.solrj.SolrServerExceptionIOException
-
query
public org.apache.solr.client.solrj.response.QueryResponse query(String collection, org.apache.solr.common.params.SolrParams params, org.apache.solr.client.solrj.SolrRequest.METHOD method) throws org.apache.solr.client.solrj.SolrServerException, IOException - Overrides:
queryin classorg.apache.solr.client.solrj.SolrClient- Throws:
org.apache.solr.client.solrj.SolrServerExceptionIOException
-
query
public org.apache.solr.client.solrj.response.QueryResponse query(org.apache.solr.common.params.SolrParams params, org.apache.solr.client.solrj.SolrRequest.METHOD method) throws org.apache.solr.client.solrj.SolrServerException, IOException - Overrides:
queryin classorg.apache.solr.client.solrj.SolrClient- Throws:
org.apache.solr.client.solrj.SolrServerExceptionIOException
-
queryAndStreamResponse
public org.apache.solr.client.solrj.response.QueryResponse queryAndStreamResponse(String collection, org.apache.solr.common.params.SolrParams params, org.apache.solr.client.solrj.StreamingResponseCallback callback) throws org.apache.solr.client.solrj.SolrServerException, IOException - Overrides:
queryAndStreamResponsein classorg.apache.solr.client.solrj.SolrClient- Throws:
org.apache.solr.client.solrj.SolrServerExceptionIOException
-
queryAndStreamResponse
public org.apache.solr.client.solrj.response.QueryResponse queryAndStreamResponse(org.apache.solr.common.params.SolrParams params, org.apache.solr.client.solrj.StreamingResponseCallback callback) throws org.apache.solr.client.solrj.SolrServerException, IOException - Overrides:
queryAndStreamResponsein classorg.apache.solr.client.solrj.SolrClient- Throws:
org.apache.solr.client.solrj.SolrServerExceptionIOException
-
getById
public org.apache.solr.common.SolrDocument getById(String collection, String id) throws org.apache.solr.client.solrj.SolrServerException, IOException - Overrides:
getByIdin classorg.apache.solr.client.solrj.SolrClient- Throws:
org.apache.solr.client.solrj.SolrServerExceptionIOException
-
getById
public org.apache.solr.common.SolrDocument getById(String id) throws org.apache.solr.client.solrj.SolrServerException, IOException - Overrides:
getByIdin classorg.apache.solr.client.solrj.SolrClient- Throws:
org.apache.solr.client.solrj.SolrServerExceptionIOException
-
getById
public org.apache.solr.common.SolrDocument getById(String collection, String id, org.apache.solr.common.params.SolrParams params) throws org.apache.solr.client.solrj.SolrServerException, IOException - Overrides:
getByIdin classorg.apache.solr.client.solrj.SolrClient- Throws:
org.apache.solr.client.solrj.SolrServerExceptionIOException
-
getById
public org.apache.solr.common.SolrDocument getById(String id, org.apache.solr.common.params.SolrParams params) throws org.apache.solr.client.solrj.SolrServerException, IOException - Overrides:
getByIdin classorg.apache.solr.client.solrj.SolrClient- Throws:
org.apache.solr.client.solrj.SolrServerExceptionIOException
-
getById
public org.apache.solr.common.SolrDocumentList getById(String collection, Collection<String> ids) throws org.apache.solr.client.solrj.SolrServerException, IOException - Overrides:
getByIdin classorg.apache.solr.client.solrj.SolrClient- Throws:
org.apache.solr.client.solrj.SolrServerExceptionIOException
-
getById
public org.apache.solr.common.SolrDocumentList getById(Collection<String> ids) throws org.apache.solr.client.solrj.SolrServerException, IOException - Overrides:
getByIdin classorg.apache.solr.client.solrj.SolrClient- Throws:
org.apache.solr.client.solrj.SolrServerExceptionIOException
-
getById
public org.apache.solr.common.SolrDocumentList getById(String collection, Collection<String> ids, org.apache.solr.common.params.SolrParams params) throws org.apache.solr.client.solrj.SolrServerException, IOException - Overrides:
getByIdin classorg.apache.solr.client.solrj.SolrClient- Throws:
org.apache.solr.client.solrj.SolrServerExceptionIOException
-
getById
public org.apache.solr.common.SolrDocumentList getById(Collection<String> ids, org.apache.solr.common.params.SolrParams params) throws org.apache.solr.client.solrj.SolrServerException, IOException - Overrides:
getByIdin classorg.apache.solr.client.solrj.SolrClient- Throws:
org.apache.solr.client.solrj.SolrServerExceptionIOException
-
getBinder
public org.apache.solr.client.solrj.beans.DocumentObjectBinder getBinder()- Overrides:
getBinderin classorg.apache.solr.client.solrj.SolrClient
-
close
- Throws:
IOException
-
getDelegate
public org.apache.solr.client.solrj.impl.HttpSolrClient getDelegate() -
getDefaultCollection
- Overrides:
getDefaultCollectionin classorg.apache.solr.client.solrj.SolrClient
-