Class SolrTestCaseHS.Client

java.lang.Object
org.apache.solr.SolrTestCaseHS.Client
Enclosing class:
SolrTestCaseHS

public static class SolrTestCaseHS.Client extends Object
  • Field Details

  • Constructor Details

    • Client

      public Client(List<org.apache.solr.client.solrj.SolrClient> clients, int seed)
  • Method Details

    • localClient

      public static SolrTestCaseHS.Client localClient()
    • hash

      public static int hash(int x)
    • queryDefaults

      public org.apache.solr.common.params.ModifiableSolrParams queryDefaults()
    • local

      public boolean local()
    • getClientProvider

      public SolrTestCaseHS.ClientProvider getClientProvider()
    • testJQ

      public void testJQ(org.apache.solr.common.params.SolrParams args, String... tests) throws Exception
      Throws:
      Exception
    • testXQ

      public void testXQ(org.apache.solr.common.params.SolrParams args, String... tests) throws Exception
      tests are validated against xml response
      Throws:
      Exception
    • add

      public Long add(org.apache.solr.common.SolrInputDocument sdoc, org.apache.solr.common.params.ModifiableSolrParams params) throws Exception
      Throws:
      Exception
    • commit

      public void commit() throws IOException, org.apache.solr.client.solrj.SolrServerException
      Throws:
      IOException
      org.apache.solr.client.solrj.SolrServerException
    • deleteByQuery

      public void deleteByQuery(String query) throws IOException, org.apache.solr.client.solrj.SolrServerException
      Throws:
      IOException
      org.apache.solr.client.solrj.SolrServerException