Package org.apache.solr
Class SolrTestCaseHS.Client
- java.lang.Object
-
- org.apache.solr.SolrTestCaseHS.Client
-
- Enclosing class:
- SolrTestCaseHS
public static class SolrTestCaseHS.Client extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSolrTestCaseHS.Client.Tester
-
Field Summary
Fields Modifier and Type Field Description static SolrTestCaseHS.ClientlocalClientSolrTestCaseHS.Client.Testertester
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Longadd(org.apache.solr.common.SolrInputDocument sdoc, org.apache.solr.common.params.ModifiableSolrParams params)voidcommit()voiddeleteByQuery(String query, org.apache.solr.common.params.ModifiableSolrParams params)SolrTestCaseHS.ClientProvidergetClientProvider()static inthash(int x)booleanlocal()static SolrTestCaseHS.ClientlocalClient()org.apache.solr.common.params.ModifiableSolrParamsqueryDefaults()voidtestJQ(org.apache.solr.common.params.SolrParams args, String... tests)voidtestXQ(org.apache.solr.common.params.SolrParams args, String... tests)tests are validated against xml response
-
-
-
Field Detail
-
tester
public SolrTestCaseHS.Client.Tester tester
-
localClient
public static SolrTestCaseHS.Client localClient
-
-
Constructor Detail
-
Client
public Client(List<org.apache.solr.client.solrj.SolrClient> clients, int seed)
-
-
Method Detail
-
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 Exceptiontests 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:
IOExceptionorg.apache.solr.client.solrj.SolrServerException
-
deleteByQuery
public void deleteByQuery(String query, org.apache.solr.common.params.ModifiableSolrParams params) throws IOException, org.apache.solr.client.solrj.SolrServerException
- Throws:
IOExceptionorg.apache.solr.client.solrj.SolrServerException
-
-