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
    Modifier and Type
    Field
    Description
    protected final String
     
    protected final String
     
    protected final org.apache.solr.client.solrj.impl.HttpSolrClient
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    DelegatingHttpSolrClient(org.apache.solr.client.solrj.impl.HttpSolrClient delegate)
     
    DelegatingHttpSolrClient(org.apache.solr.client.solrj.impl.HttpSolrClient delegate, String defaultCollection)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.apache.solr.client.solrj.response.UpdateResponse
    add(String collection, Collection<org.apache.solr.common.SolrInputDocument> docs)
     
    org.apache.solr.client.solrj.response.UpdateResponse
    add(String collection, Collection<org.apache.solr.common.SolrInputDocument> docs, int commitWithinMs)
     
    org.apache.solr.client.solrj.response.UpdateResponse
    add(String collection, Iterator<org.apache.solr.common.SolrInputDocument> docIterator)
     
    org.apache.solr.client.solrj.response.UpdateResponse
    add(String collection, org.apache.solr.common.SolrInputDocument doc)
     
    org.apache.solr.client.solrj.response.UpdateResponse
    add(String collection, org.apache.solr.common.SolrInputDocument doc, int commitWithinMs)
     
    org.apache.solr.client.solrj.response.UpdateResponse
    add(Collection<org.apache.solr.common.SolrInputDocument> docs)
     
    org.apache.solr.client.solrj.response.UpdateResponse
    add(Collection<org.apache.solr.common.SolrInputDocument> docs, int commitWithinMs)
     
    org.apache.solr.client.solrj.response.UpdateResponse
    add(Iterator<org.apache.solr.common.SolrInputDocument> docIterator)
     
    org.apache.solr.client.solrj.response.UpdateResponse
    add(org.apache.solr.common.SolrInputDocument doc)
     
    org.apache.solr.client.solrj.response.UpdateResponse
    add(org.apache.solr.common.SolrInputDocument doc, int commitWithinMs)
     
    org.apache.solr.client.solrj.response.UpdateResponse
     
    org.apache.solr.client.solrj.response.UpdateResponse
    addBean(Object obj, int commitWithinMs)
     
    org.apache.solr.client.solrj.response.UpdateResponse
    addBean(String collection, Object obj)
     
    org.apache.solr.client.solrj.response.UpdateResponse
    addBean(String collection, Object obj, int commitWithinMs)
     
    org.apache.solr.client.solrj.response.UpdateResponse
    addBeans(String collection, Collection<?> beans)
     
    org.apache.solr.client.solrj.response.UpdateResponse
    addBeans(String collection, Collection<?> beans, int commitWithinMs)
     
    org.apache.solr.client.solrj.response.UpdateResponse
    addBeans(String collection, Iterator<?> beanIterator)
     
    org.apache.solr.client.solrj.response.UpdateResponse
    addBeans(Collection<?> beans)
     
    org.apache.solr.client.solrj.response.UpdateResponse
    addBeans(Collection<?> beans, int commitWithinMs)
     
    org.apache.solr.client.solrj.response.UpdateResponse
    addBeans(Iterator<?> beanIterator)
     
    void
     
    org.apache.solr.client.solrj.response.UpdateResponse
     
    org.apache.solr.client.solrj.response.UpdateResponse
    commit(boolean waitFlush, boolean waitSearcher)
     
    org.apache.solr.client.solrj.response.UpdateResponse
    commit(boolean waitFlush, boolean waitSearcher, boolean softCommit)
     
    org.apache.solr.client.solrj.response.UpdateResponse
    commit(String collection)
     
    org.apache.solr.client.solrj.response.UpdateResponse
    commit(String collection, boolean waitFlush, boolean waitSearcher)
     
    org.apache.solr.client.solrj.response.UpdateResponse
    commit(String collection, boolean waitFlush, boolean waitSearcher, boolean softCommit)
     
    org.apache.solr.client.solrj.response.UpdateResponse
     
    org.apache.solr.client.solrj.response.UpdateResponse
    deleteById(String id, int commitWithinMs)
     
    org.apache.solr.client.solrj.response.UpdateResponse
    deleteById(String collection, String id)
     
    org.apache.solr.client.solrj.response.UpdateResponse
    deleteById(String collection, String id, int commitWithinMs)
     
    org.apache.solr.client.solrj.response.UpdateResponse
    deleteById(String collection, List<String> ids)
     
    org.apache.solr.client.solrj.response.UpdateResponse
    deleteById(String collection, List<String> ids, int commitWithinMs)
     
    org.apache.solr.client.solrj.response.UpdateResponse
     
    org.apache.solr.client.solrj.response.UpdateResponse
    deleteById(List<String> ids, int commitWithinMs)
     
    org.apache.solr.client.solrj.response.UpdateResponse
     
    org.apache.solr.client.solrj.response.UpdateResponse
    deleteByQuery(String query, int commitWithinMs)
     
    org.apache.solr.client.solrj.response.UpdateResponse
    deleteByQuery(String collection, String query)
     
    org.apache.solr.client.solrj.response.UpdateResponse
    deleteByQuery(String collection, String query, int commitWithinMs)
     
    org.apache.solr.client.solrj.beans.DocumentObjectBinder
     
    org.apache.solr.common.SolrDocument
     
    org.apache.solr.common.SolrDocument
    getById(String collection, String id)
     
    org.apache.solr.common.SolrDocument
    getById(String collection, String id, org.apache.solr.common.params.SolrParams params)
     
    org.apache.solr.common.SolrDocumentList
    getById(String collection, Collection<String> ids)
     
    org.apache.solr.common.SolrDocumentList
    getById(String collection, Collection<String> ids, org.apache.solr.common.params.SolrParams params)
     
    org.apache.solr.common.SolrDocument
    getById(String id, org.apache.solr.common.params.SolrParams params)
     
    org.apache.solr.common.SolrDocumentList
     
    org.apache.solr.common.SolrDocumentList
    getById(Collection<String> ids, org.apache.solr.common.params.SolrParams params)
     
     
    org.apache.solr.client.solrj.impl.HttpSolrClient
     
    org.apache.solr.client.solrj.response.UpdateResponse
     
    org.apache.solr.client.solrj.response.UpdateResponse
    optimize(boolean waitFlush, boolean waitSearcher)
     
    org.apache.solr.client.solrj.response.UpdateResponse
    optimize(boolean waitFlush, boolean waitSearcher, int maxSegments)
     
    org.apache.solr.client.solrj.response.UpdateResponse
    optimize(String collection)
     
    org.apache.solr.client.solrj.response.UpdateResponse
    optimize(String collection, boolean waitFlush, boolean waitSearcher)
     
    org.apache.solr.client.solrj.response.UpdateResponse
    optimize(String collection, boolean waitFlush, boolean waitSearcher, int maxSegments)
     
    org.apache.solr.client.solrj.response.SolrPingResponse
     
    org.apache.solr.client.solrj.response.QueryResponse
    query(String collection, org.apache.solr.common.params.SolrParams params)
     
    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)
     
    org.apache.solr.client.solrj.response.QueryResponse
    query(org.apache.solr.common.params.SolrParams params)
     
    org.apache.solr.client.solrj.response.QueryResponse
    query(org.apache.solr.common.params.SolrParams params, org.apache.solr.client.solrj.SolrRequest.METHOD method)
     
    org.apache.solr.client.solrj.response.QueryResponse
    queryAndStreamResponse(String collection, org.apache.solr.common.params.SolrParams params, org.apache.solr.client.solrj.StreamingResponseCallback callback)
     
    org.apache.solr.client.solrj.response.QueryResponse
    queryAndStreamResponse(org.apache.solr.common.params.SolrParams params, org.apache.solr.client.solrj.StreamingResponseCallback callback)
     
    org.apache.solr.common.util.NamedList<Object>
    request(org.apache.solr.client.solrj.SolrRequest request, String collection)
     
    org.apache.solr.client.solrj.response.UpdateResponse
     
    org.apache.solr.client.solrj.response.UpdateResponse
    rollback(String collection)
     

    Methods inherited from class org.apache.solr.client.solrj.SolrClient

    getContext, ping, queryAndStreamResponse, request

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • delegate

      protected final org.apache.solr.client.solrj.impl.HttpSolrClient delegate
    • defaultCollection

      protected final String defaultCollection
    • defaultCollectionPath

      protected final String 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:
      request in class org.apache.solr.client.solrj.SolrClient
      Throws:
      org.apache.solr.client.solrj.SolrServerException
      IOException
    • 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:
      add in class org.apache.solr.client.solrj.SolrClient
      Throws:
      org.apache.solr.client.solrj.SolrServerException
      IOException
    • 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:
      add in class org.apache.solr.client.solrj.SolrClient
      Throws:
      org.apache.solr.client.solrj.SolrServerException
      IOException
    • 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:
      add in class org.apache.solr.client.solrj.SolrClient
      Throws:
      org.apache.solr.client.solrj.SolrServerException
      IOException
    • 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:
      add in class org.apache.solr.client.solrj.SolrClient
      Throws:
      org.apache.solr.client.solrj.SolrServerException
      IOException
    • 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:
      add in class org.apache.solr.client.solrj.SolrClient
      Throws:
      org.apache.solr.client.solrj.SolrServerException
      IOException
    • 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:
      add in class org.apache.solr.client.solrj.SolrClient
      Throws:
      org.apache.solr.client.solrj.SolrServerException
      IOException
    • 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:
      add in class org.apache.solr.client.solrj.SolrClient
      Throws:
      org.apache.solr.client.solrj.SolrServerException
      IOException
    • 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:
      add in class org.apache.solr.client.solrj.SolrClient
      Throws:
      org.apache.solr.client.solrj.SolrServerException
      IOException
    • 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:
      add in class org.apache.solr.client.solrj.SolrClient
      Throws:
      org.apache.solr.client.solrj.SolrServerException
      IOException
    • 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:
      add in class org.apache.solr.client.solrj.SolrClient
      Throws:
      org.apache.solr.client.solrj.SolrServerException
      IOException
    • addBean

      public org.apache.solr.client.solrj.response.UpdateResponse addBean(String collection, Object obj) throws IOException, org.apache.solr.client.solrj.SolrServerException
      Overrides:
      addBean in class org.apache.solr.client.solrj.SolrClient
      Throws:
      IOException
      org.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:
      addBean in class org.apache.solr.client.solrj.SolrClient
      Throws:
      IOException
      org.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:
      addBean in class org.apache.solr.client.solrj.SolrClient
      Throws:
      IOException
      org.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:
      addBean in class org.apache.solr.client.solrj.SolrClient
      Throws:
      IOException
      org.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:
      addBeans in class org.apache.solr.client.solrj.SolrClient
      Throws:
      org.apache.solr.client.solrj.SolrServerException
      IOException
    • addBeans

      public org.apache.solr.client.solrj.response.UpdateResponse addBeans(Collection<?> beans) throws org.apache.solr.client.solrj.SolrServerException, IOException
      Overrides:
      addBeans in class org.apache.solr.client.solrj.SolrClient
      Throws:
      org.apache.solr.client.solrj.SolrServerException
      IOException
    • 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:
      addBeans in class org.apache.solr.client.solrj.SolrClient
      Throws:
      org.apache.solr.client.solrj.SolrServerException
      IOException
    • addBeans

      public org.apache.solr.client.solrj.response.UpdateResponse addBeans(Collection<?> beans, int commitWithinMs) throws org.apache.solr.client.solrj.SolrServerException, IOException
      Overrides:
      addBeans in class org.apache.solr.client.solrj.SolrClient
      Throws:
      org.apache.solr.client.solrj.SolrServerException
      IOException
    • addBeans

      public org.apache.solr.client.solrj.response.UpdateResponse addBeans(String collection, Iterator<?> beanIterator) throws org.apache.solr.client.solrj.SolrServerException, IOException
      Overrides:
      addBeans in class org.apache.solr.client.solrj.SolrClient
      Throws:
      org.apache.solr.client.solrj.SolrServerException
      IOException
    • addBeans

      public org.apache.solr.client.solrj.response.UpdateResponse addBeans(Iterator<?> beanIterator) throws org.apache.solr.client.solrj.SolrServerException, IOException
      Overrides:
      addBeans in class org.apache.solr.client.solrj.SolrClient
      Throws:
      org.apache.solr.client.solrj.SolrServerException
      IOException
    • commit

      public org.apache.solr.client.solrj.response.UpdateResponse commit(String collection) throws org.apache.solr.client.solrj.SolrServerException, IOException
      Overrides:
      commit in class org.apache.solr.client.solrj.SolrClient
      Throws:
      org.apache.solr.client.solrj.SolrServerException
      IOException
    • commit

      public org.apache.solr.client.solrj.response.UpdateResponse commit() throws org.apache.solr.client.solrj.SolrServerException, IOException
      Overrides:
      commit in class org.apache.solr.client.solrj.SolrClient
      Throws:
      org.apache.solr.client.solrj.SolrServerException
      IOException
    • 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:
      commit in class org.apache.solr.client.solrj.SolrClient
      Throws:
      org.apache.solr.client.solrj.SolrServerException
      IOException
    • commit

      public org.apache.solr.client.solrj.response.UpdateResponse commit(boolean waitFlush, boolean waitSearcher) throws org.apache.solr.client.solrj.SolrServerException, IOException
      Overrides:
      commit in class org.apache.solr.client.solrj.SolrClient
      Throws:
      org.apache.solr.client.solrj.SolrServerException
      IOException
    • 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:
      commit in class org.apache.solr.client.solrj.SolrClient
      Throws:
      org.apache.solr.client.solrj.SolrServerException
      IOException
    • 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:
      commit in class org.apache.solr.client.solrj.SolrClient
      Throws:
      org.apache.solr.client.solrj.SolrServerException
      IOException
    • optimize

      public org.apache.solr.client.solrj.response.UpdateResponse optimize(String collection) throws org.apache.solr.client.solrj.SolrServerException, IOException
      Overrides:
      optimize in class org.apache.solr.client.solrj.SolrClient
      Throws:
      org.apache.solr.client.solrj.SolrServerException
      IOException
    • optimize

      public org.apache.solr.client.solrj.response.UpdateResponse optimize() throws org.apache.solr.client.solrj.SolrServerException, IOException
      Overrides:
      optimize in class org.apache.solr.client.solrj.SolrClient
      Throws:
      org.apache.solr.client.solrj.SolrServerException
      IOException
    • 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:
      optimize in class org.apache.solr.client.solrj.SolrClient
      Throws:
      org.apache.solr.client.solrj.SolrServerException
      IOException
    • optimize

      public org.apache.solr.client.solrj.response.UpdateResponse optimize(boolean waitFlush, boolean waitSearcher) throws org.apache.solr.client.solrj.SolrServerException, IOException
      Overrides:
      optimize in class org.apache.solr.client.solrj.SolrClient
      Throws:
      org.apache.solr.client.solrj.SolrServerException
      IOException
    • 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:
      optimize in class org.apache.solr.client.solrj.SolrClient
      Throws:
      org.apache.solr.client.solrj.SolrServerException
      IOException
    • 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:
      optimize in class org.apache.solr.client.solrj.SolrClient
      Throws:
      org.apache.solr.client.solrj.SolrServerException
      IOException
    • rollback

      public org.apache.solr.client.solrj.response.UpdateResponse rollback(String collection) throws org.apache.solr.client.solrj.SolrServerException, IOException
      Overrides:
      rollback in class org.apache.solr.client.solrj.SolrClient
      Throws:
      org.apache.solr.client.solrj.SolrServerException
      IOException
    • rollback

      public org.apache.solr.client.solrj.response.UpdateResponse rollback() throws org.apache.solr.client.solrj.SolrServerException, IOException
      Overrides:
      rollback in class org.apache.solr.client.solrj.SolrClient
      Throws:
      org.apache.solr.client.solrj.SolrServerException
      IOException
    • deleteById

      public org.apache.solr.client.solrj.response.UpdateResponse deleteById(String collection, String id) throws org.apache.solr.client.solrj.SolrServerException, IOException
      Overrides:
      deleteById in class org.apache.solr.client.solrj.SolrClient
      Throws:
      org.apache.solr.client.solrj.SolrServerException
      IOException
    • deleteById

      public org.apache.solr.client.solrj.response.UpdateResponse deleteById(String id) throws org.apache.solr.client.solrj.SolrServerException, IOException
      Overrides:
      deleteById in class org.apache.solr.client.solrj.SolrClient
      Throws:
      org.apache.solr.client.solrj.SolrServerException
      IOException
    • 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:
      deleteById in class org.apache.solr.client.solrj.SolrClient
      Throws:
      org.apache.solr.client.solrj.SolrServerException
      IOException
    • deleteById

      public org.apache.solr.client.solrj.response.UpdateResponse deleteById(String id, int commitWithinMs) throws org.apache.solr.client.solrj.SolrServerException, IOException
      Overrides:
      deleteById in class org.apache.solr.client.solrj.SolrClient
      Throws:
      org.apache.solr.client.solrj.SolrServerException
      IOException
    • deleteById

      public org.apache.solr.client.solrj.response.UpdateResponse deleteById(String collection, List<String> ids) throws org.apache.solr.client.solrj.SolrServerException, IOException
      Overrides:
      deleteById in class org.apache.solr.client.solrj.SolrClient
      Throws:
      org.apache.solr.client.solrj.SolrServerException
      IOException
    • deleteById

      public org.apache.solr.client.solrj.response.UpdateResponse deleteById(List<String> ids) throws org.apache.solr.client.solrj.SolrServerException, IOException
      Overrides:
      deleteById in class org.apache.solr.client.solrj.SolrClient
      Throws:
      org.apache.solr.client.solrj.SolrServerException
      IOException
    • 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:
      deleteById in class org.apache.solr.client.solrj.SolrClient
      Throws:
      org.apache.solr.client.solrj.SolrServerException
      IOException
    • deleteById

      public org.apache.solr.client.solrj.response.UpdateResponse deleteById(List<String> ids, int commitWithinMs) throws org.apache.solr.client.solrj.SolrServerException, IOException
      Overrides:
      deleteById in class org.apache.solr.client.solrj.SolrClient
      Throws:
      org.apache.solr.client.solrj.SolrServerException
      IOException
    • deleteByQuery

      public org.apache.solr.client.solrj.response.UpdateResponse deleteByQuery(String collection, String query) throws org.apache.solr.client.solrj.SolrServerException, IOException
      Overrides:
      deleteByQuery in class org.apache.solr.client.solrj.SolrClient
      Throws:
      org.apache.solr.client.solrj.SolrServerException
      IOException
    • deleteByQuery

      public org.apache.solr.client.solrj.response.UpdateResponse deleteByQuery(String query) throws org.apache.solr.client.solrj.SolrServerException, IOException
      Overrides:
      deleteByQuery in class org.apache.solr.client.solrj.SolrClient
      Throws:
      org.apache.solr.client.solrj.SolrServerException
      IOException
    • 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:
      deleteByQuery in class org.apache.solr.client.solrj.SolrClient
      Throws:
      org.apache.solr.client.solrj.SolrServerException
      IOException
    • deleteByQuery

      public org.apache.solr.client.solrj.response.UpdateResponse deleteByQuery(String query, int commitWithinMs) throws org.apache.solr.client.solrj.SolrServerException, IOException
      Overrides:
      deleteByQuery in class org.apache.solr.client.solrj.SolrClient
      Throws:
      org.apache.solr.client.solrj.SolrServerException
      IOException
    • ping

      public org.apache.solr.client.solrj.response.SolrPingResponse ping() throws org.apache.solr.client.solrj.SolrServerException, IOException
      Overrides:
      ping in class org.apache.solr.client.solrj.SolrClient
      Throws:
      org.apache.solr.client.solrj.SolrServerException
      IOException
    • 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:
      query in class org.apache.solr.client.solrj.SolrClient
      Throws:
      org.apache.solr.client.solrj.SolrServerException
      IOException
    • 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:
      query in class org.apache.solr.client.solrj.SolrClient
      Throws:
      org.apache.solr.client.solrj.SolrServerException
      IOException
    • 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:
      query in class org.apache.solr.client.solrj.SolrClient
      Throws:
      org.apache.solr.client.solrj.SolrServerException
      IOException
    • 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:
      query in class org.apache.solr.client.solrj.SolrClient
      Throws:
      org.apache.solr.client.solrj.SolrServerException
      IOException
    • 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:
      queryAndStreamResponse in class org.apache.solr.client.solrj.SolrClient
      Throws:
      org.apache.solr.client.solrj.SolrServerException
      IOException
    • 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:
      queryAndStreamResponse in class org.apache.solr.client.solrj.SolrClient
      Throws:
      org.apache.solr.client.solrj.SolrServerException
      IOException
    • getById

      public org.apache.solr.common.SolrDocument getById(String collection, String id) throws org.apache.solr.client.solrj.SolrServerException, IOException
      Overrides:
      getById in class org.apache.solr.client.solrj.SolrClient
      Throws:
      org.apache.solr.client.solrj.SolrServerException
      IOException
    • getById

      public org.apache.solr.common.SolrDocument getById(String id) throws org.apache.solr.client.solrj.SolrServerException, IOException
      Overrides:
      getById in class org.apache.solr.client.solrj.SolrClient
      Throws:
      org.apache.solr.client.solrj.SolrServerException
      IOException
    • 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:
      getById in class org.apache.solr.client.solrj.SolrClient
      Throws:
      org.apache.solr.client.solrj.SolrServerException
      IOException
    • 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:
      getById in class org.apache.solr.client.solrj.SolrClient
      Throws:
      org.apache.solr.client.solrj.SolrServerException
      IOException
    • getById

      public org.apache.solr.common.SolrDocumentList getById(String collection, Collection<String> ids) throws org.apache.solr.client.solrj.SolrServerException, IOException
      Overrides:
      getById in class org.apache.solr.client.solrj.SolrClient
      Throws:
      org.apache.solr.client.solrj.SolrServerException
      IOException
    • getById

      public org.apache.solr.common.SolrDocumentList getById(Collection<String> ids) throws org.apache.solr.client.solrj.SolrServerException, IOException
      Overrides:
      getById in class org.apache.solr.client.solrj.SolrClient
      Throws:
      org.apache.solr.client.solrj.SolrServerException
      IOException
    • 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:
      getById in class org.apache.solr.client.solrj.SolrClient
      Throws:
      org.apache.solr.client.solrj.SolrServerException
      IOException
    • 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:
      getById in class org.apache.solr.client.solrj.SolrClient
      Throws:
      org.apache.solr.client.solrj.SolrServerException
      IOException
    • getBinder

      public org.apache.solr.client.solrj.beans.DocumentObjectBinder getBinder()
      Overrides:
      getBinder in class org.apache.solr.client.solrj.SolrClient
    • close

      public void close() throws IOException
      Throws:
      IOException
    • getDelegate

      public org.apache.solr.client.solrj.impl.HttpSolrClient getDelegate()
    • getDefaultCollection

      public String getDefaultCollection()
      Overrides:
      getDefaultCollection in class org.apache.solr.client.solrj.SolrClient