Class MockSearchableSolrClient

java.lang.Object
org.apache.solr.client.solrj.SolrClient
org.apache.solr.util.MockSearchableSolrClient
All Implemented Interfaces:
Closeable, Serializable, AutoCloseable

@Deprecated public class MockSearchableSolrClient extends org.apache.solr.client.solrj.SolrClient
Deprecated.
Simple mock client that collects added documents and supports simple search by id (both {!term f=id} and id: syntax is supported) or *:*.
See Also:
  • Nested Class Summary

    Nested classes/interfaces inherited from class org.apache.solr.client.solrj.SolrClient

    org.apache.solr.client.solrj.SolrClient.SolrClientFunction<C extends org.apache.solr.client.solrj.SolrClient,R>
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    Map<String,Map<String,org.apache.solr.common.SolrInputDocument>>
    Deprecated.
     

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

    defaultCollection
  • Constructor Summary

    Constructors
    Constructor
    Description
    Deprecated.
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Deprecated.
     
    void
    Deprecated.
     
    long
    Deprecated.
     
    long
    Deprecated.
     
    org.apache.solr.common.util.NamedList<Object>
    request(org.apache.solr.client.solrj.SolrRequest<?> request, String coll)
    Deprecated.
     

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

    add, add, add, add, add, add, add, add, add, add, addBean, addBean, addBean, addBean, addBeans, addBeans, addBeans, addBeans, addBeans, addBeans, commit, commit, commit, commit, commit, commit, deleteById, deleteById, deleteById, deleteById, deleteById, deleteById, deleteById, deleteById, deleteByQuery, deleteByQuery, deleteByQuery, deleteByQuery, getById, getById, getById, getById, getById, getById, getById, getById, getContext, getDefaultCollection, optimize, optimize, optimize, optimize, optimize, optimize, ping, ping, query, query, query, query, queryAndStreamResponse, queryAndStreamResponse, queryAndStreamResponse, request, rollback, rollback

    Methods inherited from class java.lang.Object

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

    • docs

      public Map<String,Map<String,org.apache.solr.common.SolrInputDocument>> docs
      Deprecated.
  • Constructor Details

    • MockSearchableSolrClient

      public MockSearchableSolrClient()
      Deprecated.
  • Method Details

    • clear

      public void clear()
      Deprecated.
    • request

      public org.apache.solr.common.util.NamedList<Object> request(org.apache.solr.client.solrj.SolrRequest<?> request, String coll) throws org.apache.solr.client.solrj.SolrServerException, IOException
      Deprecated.
      Specified by:
      request in class org.apache.solr.client.solrj.SolrClient
      Throws:
      org.apache.solr.client.solrj.SolrServerException
      IOException
    • getNumUpdates

      public long getNumUpdates()
      Deprecated.
    • getNumQueries

      public long getNumQueries()
      Deprecated.
    • close

      public void close() throws IOException
      Deprecated.
      Throws:
      IOException