public abstract class BaseDistributedSearchTestCase extends SolrTestCaseJ4
Modifier and Type | Class and Description |
---|---|
static class |
BaseDistributedSearchTestCase.RandDate |
static class |
BaseDistributedSearchTestCase.RandVal |
static interface |
BaseDistributedSearchTestCase.ShardsFixed |
static interface |
BaseDistributedSearchTestCase.ShardsRepeat |
class |
BaseDistributedSearchTestCase.ShardsRepeatRule |
SolrTestCaseJ4.BVal, SolrTestCaseJ4.CloudHttp2SolrClientBuilder, SolrTestCaseJ4.CloudSolrClientBuilder, SolrTestCaseJ4.Doc, SolrTestCaseJ4.Fld, SolrTestCaseJ4.FldType, SolrTestCaseJ4.FVal, SolrTestCaseJ4.IRange, SolrTestCaseJ4.IVals, SolrTestCaseJ4.IValsPercent, SolrTestCaseJ4.SuppressPointFields, SolrTestCaseJ4.SuppressSSL, SolrTestCaseJ4.SVal, SolrTestCaseJ4.Vals, SolrTestCaseJ4.XmlDoc
org.apache.lucene.util.LuceneTestCase.AwaitsFix, org.apache.lucene.util.LuceneTestCase.BadApple, org.apache.lucene.util.LuceneTestCase.Monster, org.apache.lucene.util.LuceneTestCase.Nightly, org.apache.lucene.util.LuceneTestCase.Slow, org.apache.lucene.util.LuceneTestCase.SuppressCodecs, org.apache.lucene.util.LuceneTestCase.SuppressFileSystems, org.apache.lucene.util.LuceneTestCase.SuppressFsync, org.apache.lucene.util.LuceneTestCase.SuppressReproduceLine, org.apache.lucene.util.LuceneTestCase.SuppressSysoutChecks, org.apache.lucene.util.LuceneTestCase.SuppressTempFileChecks, org.apache.lucene.util.LuceneTestCase.ThrowingRunnable, org.apache.lucene.util.LuceneTestCase.Weekly
Modifier and Type | Field and Description |
---|---|
protected List<org.apache.solr.client.solrj.SolrClient> |
clients |
protected String |
context |
protected org.apache.solr.client.solrj.SolrClient |
controlClient |
protected org.apache.solr.client.solrj.embedded.JettySolrRunner |
controlJetty |
protected String[] |
deadServers |
protected ExecutorService |
executor |
static String[] |
fieldNames |
protected int |
flags |
static int |
FUZZY
When this flag is set, Double values will be allowed a difference ratio of 1E-8
between the non-distributed and the distributed returned values
|
protected Map<String,Integer> |
handle |
protected String |
id |
protected List<org.apache.solr.client.solrj.embedded.JettySolrRunner> |
jettys |
protected int |
nThreads |
static int |
ORDERED |
static Random |
r |
static BaseDistributedSearchTestCase.RandVal[] |
randVals |
static BaseDistributedSearchTestCase.RandVal |
rdate |
static BaseDistributedSearchTestCase.RandVal |
rdouble |
BaseDistributedSearchTestCase.ShardsRepeatRule |
repeatRule |
static BaseDistributedSearchTestCase.RandVal |
rfloat |
static BaseDistributedSearchTestCase.RandVal |
rint |
static BaseDistributedSearchTestCase.RandVal |
rlong |
protected String |
shards |
protected String[] |
shardsArr |
static int |
SKIP |
static int |
SKIPVAL |
protected int |
stress |
protected File |
testDir |
static int |
UNORDERED |
protected boolean |
useExplicitNodeNames |
protected boolean |
verifyStress |
configString, CORE_PROPERTIES_FILENAME, coreName, DEFAULT_CONNECTION_TIMEOUT, DEFAULT_TEST_COLLECTION_NAME, DEFAULT_TEST_CORENAME, h, hdfsDataDir, initCoreDataDir, lrf, NUMERIC_DOCVALUES_SYSPROP, NUMERIC_POINTS_SYSPROP, ONE_ONE, RANDOMIZED_NUMERIC_FIELDTYPES, schemaString, solrClassRules, solrConfig, solrTestRules, sslConfig, SYSTEM_PROPERTY_SOLR_DISABLE_SHARDS_WHITELIST, SYSTEM_PROPERTY_SOLR_TESTS_MERGEPOLICYFACTORY, testExecutor, testSolrHome, UPDATELOG_SYSPROP, USE_NUMERIC_POINTS_SYSPROP, ZERO_ONE, ZERO_TWO
assertsAreEnabled, classRules, DEFAULT_LINE_DOCS_FILE, INFOSTREAM, JENKINS_LARGE_LINE_DOCS_FILE, LEAVE_TEMPORARY, MAYBE_CACHE_POLICY, RANDOM_MULTIPLIER, ruleChain, suiteFailureMarker, SYSPROP_AWAITSFIX, SYSPROP_BADAPPLES, SYSPROP_FAILFAST, SYSPROP_MAXFAILURES, SYSPROP_MONSTER, SYSPROP_NIGHTLY, SYSPROP_SLOW, SYSPROP_WEEKLY, TEST_ASSERTS_ENABLED, TEST_AWAITSFIX, TEST_BADAPPLES, TEST_CODEC, TEST_DIRECTORY, TEST_DOCVALUESFORMAT, TEST_LINE_DOCS_FILE, TEST_MONSTER, TEST_NIGHTLY, TEST_POSTINGSFORMAT, TEST_SLOW, TEST_THROTTLING, TEST_WEEKLY, VERBOSE
Modifier | Constructor and Description |
---|---|
protected |
BaseDistributedSearchTestCase()
Constructs a test in which the jetty+solr instances as well as the
solr clients all use the value of the "hostContext" system property.
|
protected |
BaseDistributedSearchTestCase(String context) |
Modifier and Type | Method and Description |
---|---|
protected org.apache.solr.client.solrj.response.UpdateResponse |
add(org.apache.solr.client.solrj.SolrClient client,
org.apache.solr.common.params.SolrParams params,
org.apache.solr.common.SolrInputDocument... sdocs) |
protected static void |
addFields(org.apache.solr.common.SolrInputDocument doc,
Object... fields) |
protected org.apache.solr.common.SolrInputDocument |
addRandFields(org.apache.solr.common.SolrInputDocument sdoc) |
protected String |
buildUrl(int port) |
static void |
clearHostContext()
Clears the "hostContext" system property
|
static void |
clearSolrDisableShardsWhitelist() |
protected void |
commit() |
static String |
compare(Map a,
Map b,
int flags,
Map<String,Integer> handle) |
static String |
compare(org.apache.solr.common.util.NamedList a,
org.apache.solr.common.util.NamedList b,
int flags,
Map<String,Integer> handle) |
static String |
compare(Object[] a,
Object[] b,
int flags,
Map<String,Integer> handle) |
static String |
compare(Object a,
Object b,
int flags,
Map<String,Integer> handle) |
static String |
compare(org.apache.solr.common.SolrDocumentList a,
org.apache.solr.common.SolrDocumentList b,
int flags,
Map<String,Integer> handle) |
static String |
compare(org.apache.solr.common.SolrDocument a,
org.apache.solr.common.SolrDocument b,
int flags,
Map<String,Integer> handle) |
static String |
compare1(Map a,
Map b,
int flags,
Map<String,Integer> handle) |
protected void |
compareResponses(org.apache.solr.client.solrj.response.QueryResponse a,
org.apache.solr.client.solrj.response.QueryResponse b) |
protected void |
compareSolrResponses(org.apache.solr.client.solrj.SolrResponse a,
org.apache.solr.client.solrj.SolrResponse b) |
protected org.apache.solr.client.solrj.embedded.JettySolrRunner |
createControlJetty() |
org.apache.solr.client.solrj.embedded.JettySolrRunner |
createJetty(File solrHome,
String dataDir) |
org.apache.solr.client.solrj.embedded.JettySolrRunner |
createJetty(File solrHome,
String dataDir,
String shardId) |
org.apache.solr.client.solrj.embedded.JettySolrRunner |
createJetty(File solrHome,
String dataDir,
String shardList,
String solrConfigOverride,
String schemaOverride) |
org.apache.solr.client.solrj.embedded.JettySolrRunner |
createJetty(File solrHome,
String dataDir,
String shardList,
String solrConfigOverride,
String schemaOverride,
boolean explicitCoreNodeName) |
protected org.apache.solr.client.solrj.SolrClient |
createNewSolrClient(int port) |
protected void |
createServers(int numShards) |
protected org.apache.solr.client.solrj.response.UpdateResponse |
del(org.apache.solr.client.solrj.SolrClient client,
org.apache.solr.common.params.SolrParams params,
Object... ids) |
protected void |
del(String q) |
protected org.apache.solr.client.solrj.response.UpdateResponse |
delQ(org.apache.solr.client.solrj.SolrClient client,
org.apache.solr.common.params.SolrParams params,
String... queries) |
protected void |
destroyServers() |
void |
distribSetUp() |
void |
distribTearDown() |
static boolean |
eq(String a,
String b) |
void |
fixShardCount(int count) |
static int |
flags(Map<String,Integer> handle,
Object key) |
SortedMap<Class<? extends javax.servlet.Filter>,String> |
getExtraRequestFilters()
Override this method to insert extra filters into the JettySolrRunners that are created using createJetty()
|
SortedMap<org.eclipse.jetty.servlet.ServletHolder,String> |
getExtraServlets()
Override this method to insert extra servlets into the JettySolrRunners that are created using createJetty()
|
protected String[] |
getFieldNames() |
static Object[] |
getRandFields(String[] fields,
BaseDistributedSearchTestCase.RandVal[] randVals) |
protected BaseDistributedSearchTestCase.RandVal[] |
getRandValues() |
int |
getShardCount() |
protected String |
getShardsString() |
String |
getSolrHome()
Subclasses can override this to change a test's solr home
(default is in test-files)
|
protected String |
getSolrXml() |
protected void |
index_specific(int serverNumber,
Object... fields) |
protected void |
index(Object... fields) |
protected org.apache.solr.client.solrj.response.UpdateResponse |
indexDoc(org.apache.solr.client.solrj.SolrClient client,
org.apache.solr.common.params.SolrParams params,
org.apache.solr.common.SolrInputDocument... sdocs)
Indexes the document in both the control client and the specified client asserting
that the responses are equivalent
|
protected void |
indexDoc(org.apache.solr.common.SolrInputDocument doc)
Indexes the document in both the control client, and a randomly selected client
|
protected void |
indexr(Object... fields) |
static void |
initHostContext()
Set's the value of the "hostContext" system property to a random path
like string (which may or may not contain sub-paths).
|
static void |
initialize() |
protected org.apache.solr.client.solrj.response.QueryResponse |
query(boolean setDistribParams,
Object[] q)
Returns the QueryResponse from
queryServer(org.apache.solr.common.params.ModifiableSolrParams) |
protected org.apache.solr.client.solrj.response.QueryResponse |
query(boolean setDistribParams,
org.apache.solr.common.params.SolrParams p)
Returns the QueryResponse from
queryServer(org.apache.solr.common.params.ModifiableSolrParams) |
protected org.apache.solr.client.solrj.response.QueryResponse |
query(Object... q)
Sets distributed params.
|
protected org.apache.solr.client.solrj.response.QueryResponse |
query(org.apache.solr.common.params.SolrParams params)
Sets distributed params.
|
org.apache.solr.client.solrj.response.QueryResponse |
queryAndCompare(org.apache.solr.common.params.SolrParams params,
Iterable<org.apache.solr.client.solrj.SolrClient> clients) |
org.apache.solr.client.solrj.response.QueryResponse |
queryAndCompare(org.apache.solr.common.params.SolrParams params,
org.apache.solr.client.solrj.SolrClient... clients) |
protected org.apache.solr.client.solrj.response.QueryResponse |
queryServer(org.apache.solr.common.params.ModifiableSolrParams params) |
protected void |
seedSolrHome(File jettyHome)
Given a directory that will be used as the SOLR_HOME for a jetty instance, seeds that
directory with the contents of
getSolrHome() and ensures that the proper getSolrXml()
file is in place. |
protected void |
setDistributedParams(org.apache.solr.common.params.ModifiableSolrParams params) |
static void |
setSolrDisableShardsWhitelist() |
protected void |
setupJettySolrHome(File jettyHome) |
void |
validateControlData(org.apache.solr.client.solrj.response.QueryResponse control)
Implementations can pre-test the control data for basic correctness before using it
as a check for the shard data.
|
add, addAndGetVersion, addDoc, adoc, adoc, assertFailedU, assertFailedU, assertFieldValues, assertJQ, assertJQ, assertNonBlockingRandomGeneratorAvailable, assertQ, assertQ, assertQEx, assertQEx, assertQEx, assertResponseValues, assertSolrInputFieldEquals, assertU, assertU, assertXmlFile, assumeWorkingMockito, buildJettyConfig, buildUrl, clearIndex, clearObjectTrackerAndCheckEmpty, clearObjectTrackerAndCheckEmpty, commit, compareSolrDocument, compareSolrDocumentList, compareSolrInputDocument, configset, copyMinConf, copyMinConf, copyMinConf, copyMinFullSetup, copySolrHomeToTemp, copyXmlToHome, createComparator, createComparator, createCore, createCoreContainer, createCoreContainer, createCoreContainer, createDefaultCoreContainer, createDistributedUpdateProcessor, createDoc, createSort, deleteAndGetVersion, deleteByQueryAndGetVersion, deleteCore, delI, delQ, doc, getClassName, getCloudHttp2SolrClient, getCloudSolrClient, getCloudSolrClient, getCloudSolrClient, getCloudSolrClient, getCloudSolrClient, getCloudSolrClient, getCloudSolrClient, getCloudSolrClient, getConcurrentUpdateSolrClient, getConcurrentUpdateSolrClient, getConcurrentUpdateSolrClient, getFile, getHttpSolrClient, getHttpSolrClient, getHttpSolrClient, getHttpSolrClient, getHttpSolrClient, getHttpSolrClient, getHttpSolrClient, getLBHttpSolrClient, getLBHttpSolrClient, getLBHttpSolrClient, getNextAvailablePort, getRootCause, getSaferTestName, getSchemaFile, getSimpleClassName, getSolrConfigFile, getWrappedException, hasInitException, hasInitException, ignoreException, indexDocs, initClassLogLevels, initCore, initCore, initCore, initCore, initMethodLogLevels, invertField, isSSLMode, JQ, json, json, json, jsonAdd, jsonDelId, jsonDelQ, map, newCloudSolrClient, newRandomConfig, optimize, params, pickRandom, postSetUp, preTearDown, randomDate, randomizeUpdateLogImpl, randomSkewedDate, randomXmlUsableUnicodeString, req, req, req, resetExceptionIgnores, resetFactory, restoreMethodLogLevels, sdoc, sdocs, sdocWithChildren, sdocWithChildren, sdocWithChildren, setUp, setupNoCoreTest, setupTestCases, skewed, Solr11035BandAid, Solr11035BandAid, startTrackingSearchers, systemClearPropertySolrDisableShardsWhitelist, systemClearPropertySolrTestsMergePolicyFactory, systemSetPropertySolrDisableShardsWhitelist, systemSetPropertySolrTestsMergePolicyFactory, tearDown, teardownTestCases, TEST_HOME, TEST_PATH, toJSON, unIgnoreException, updateJ, useFactory, waitForWarming, waitForWarming, whitespaceMockTokenizer, whitespaceMockTokenizer, writeCoreProperties, writeCoreProperties
checkSyspropForceBeforeAssumptionFailure, checkSyspropForceBeforeClassAssumptionFailure, shutdownLogger
addVirusChecker, assertDeletedDocsEquals, assertDocsAndPositionsEnumEquals, assertDocsEnumEquals, assertDocsSkippingEquals, assertDocValuesEquals, assertDocValuesEquals, assertFieldInfosEquals, assertNormsEquals, assertPointsEquals, assertPositionsSkippingEquals, assertReaderEquals, assertReaderStatisticsEquals, assertStoredFieldEquals, assertStoredFieldsEquals, assertTermsEnumEquals, assertTermsEquals, assertTermsEquals, assertTermsStatisticsEquals, assertTermStatsEquals, assertTermVectorsEquals, asSet, assumeFalse, assumeNoException, assumeTrue, assumeWorkingMMapOnWindows, atLeast, atLeast, closeAfterSuite, closeAfterTest, collate, createTempDir, createTempDir, createTempFile, createTempFile, dumpArray, dumpIterator, expectThrows, expectThrows, expectThrows, expectThrowsAnyOf, expectThrowsAnyOf, getBaseTempDirForTestClass, getDataInputStream, getDataPath, getOnlyLeafReader, getTestClass, getTestName, hasWorkingMMapOnWindows, isTestThread, localeForLanguageTag, maybeChangeLiveIndexWriterConfig, maybeWrapReader, newAlcoholicMergePolicy, newAlcoholicMergePolicy, newDirectory, newDirectory, newDirectory, newDirectory, newDirectory, newField, newField, newFSDirectory, newFSDirectory, newIndexWriterConfig, newIndexWriterConfig, newIndexWriterConfig, newIOContext, newIOContext, newLogMergePolicy, newLogMergePolicy, newLogMergePolicy, newLogMergePolicy, newLogMergePolicy, newMaybeVirusCheckingDirectory, newMaybeVirusCheckingFSDirectory, newMergePolicy, newMergePolicy, newMergePolicy, newMockDirectory, newMockDirectory, newMockDirectory, newMockFSDirectory, newMockFSDirectory, newSearcher, newSearcher, newSearcher, newStringField, newStringField, newStringField, newStringField, newTextField, newTextField, newTieredMergePolicy, newTieredMergePolicy, overrideDefaultQueryCache, overrideTestDefaultQueryCache, random, randomLocale, randomTimeZone, rarely, rarely, replaceMaxFailureRule, resetDefaultQueryCache, restoreCPUCoreCount, restoreIndexWriterMaxDocs, restoreSpins, runWithRestrictedPermissions, setIndexWriterMaxDocs, setupCPUCoreCount, setupSpins, slowFileExists, usually, usually, wrapReader
assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotEquals, assertNotEquals, assertNotEquals, assertNotEquals, assertNotEquals, assertNotEquals, assertNotEquals, assertNotEquals, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertThat, assertThat, assertTrue, assertTrue, fail, fail
protected ExecutorService executor
public static Random r
protected boolean useExplicitNodeNames
protected volatile org.apache.solr.client.solrj.embedded.JettySolrRunner controlJetty
protected final List<org.apache.solr.client.solrj.SolrClient> clients
protected final List<org.apache.solr.client.solrj.embedded.JettySolrRunner> jettys
protected volatile String context
protected volatile String[] deadServers
protected volatile String shards
protected volatile String[] shardsArr
protected volatile File testDir
protected volatile org.apache.solr.client.solrj.SolrClient controlClient
protected volatile int stress
protected volatile boolean verifyStress
protected volatile int nThreads
public static final int ORDERED
public static final int SKIP
public static final int SKIPVAL
public static final int UNORDERED
public static int FUZZY
protected volatile int flags
protected String id
public static BaseDistributedSearchTestCase.RandVal rint
public static BaseDistributedSearchTestCase.RandVal rlong
public static BaseDistributedSearchTestCase.RandVal rfloat
public static BaseDistributedSearchTestCase.RandVal rdouble
public static BaseDistributedSearchTestCase.RandVal rdate
public static String[] fieldNames
public static BaseDistributedSearchTestCase.RandVal[] randVals
public BaseDistributedSearchTestCase.ShardsRepeatRule repeatRule
protected BaseDistributedSearchTestCase()
If the system property is not set, or is set to the empty string
(neither of which should normally happen unless a subclass explicitly
modifies the property set by initHostContext()
prior to calling
this constructor) a servlet context of "/solr" is used. (this is for
consistency with the default behavior of solr.xml parsing when using
hostContext="${hostContext:}"
If the system property is set to a value which does not begin with a
"/" (which should normally happen unless a subclass explicitly
modifies the property set by initHostContext()
prior to calling
this constructor) a leading "/" will be prepended.
initHostContext()
protected BaseDistributedSearchTestCase(String context)
context
- explicit servlet context path to use (eg: "/solr")public static void initialize()
public static void initHostContext()
Test configs may use the ${hostContext}
variable to access
this system property.
public static void clearHostContext() throws Exception
Exception
initHostContext()
public static void setSolrDisableShardsWhitelist() throws Exception
Exception
public static void clearSolrDisableShardsWhitelist() throws Exception
Exception
public int getShardCount()
public void fixShardCount(int count)
protected String[] getFieldNames()
protected BaseDistributedSearchTestCase.RandVal[] getRandValues()
public String getSolrHome()
protected org.apache.solr.client.solrj.embedded.JettySolrRunner createControlJetty() throws Exception
Exception
protected void setDistributedParams(org.apache.solr.common.params.ModifiableSolrParams params)
protected String getShardsString()
public org.apache.solr.client.solrj.embedded.JettySolrRunner createJetty(File solrHome, String dataDir) throws Exception
Exception
public org.apache.solr.client.solrj.embedded.JettySolrRunner createJetty(File solrHome, String dataDir, String shardId) throws Exception
Exception
public org.apache.solr.client.solrj.embedded.JettySolrRunner createJetty(File solrHome, String dataDir, String shardList, String solrConfigOverride, String schemaOverride) throws Exception
Exception
public org.apache.solr.client.solrj.embedded.JettySolrRunner createJetty(File solrHome, String dataDir, String shardList, String solrConfigOverride, String schemaOverride, boolean explicitCoreNodeName) throws Exception
Exception
public SortedMap<org.eclipse.jetty.servlet.ServletHolder,String> getExtraServlets()
public SortedMap<Class<? extends javax.servlet.Filter>,String> getExtraRequestFilters()
protected org.apache.solr.client.solrj.SolrClient createNewSolrClient(int port)
protected String buildUrl(int port)
protected static void addFields(org.apache.solr.common.SolrInputDocument doc, Object... fields)
protected org.apache.solr.common.SolrInputDocument addRandFields(org.apache.solr.common.SolrInputDocument sdoc)
protected void indexDoc(org.apache.solr.common.SolrInputDocument doc) throws IOException, org.apache.solr.client.solrj.SolrServerException
IOException
org.apache.solr.client.solrj.SolrServerException
protected org.apache.solr.client.solrj.response.UpdateResponse indexDoc(org.apache.solr.client.solrj.SolrClient client, org.apache.solr.common.params.SolrParams params, org.apache.solr.common.SolrInputDocument... sdocs) throws IOException, org.apache.solr.client.solrj.SolrServerException
IOException
org.apache.solr.client.solrj.SolrServerException
protected org.apache.solr.client.solrj.response.UpdateResponse add(org.apache.solr.client.solrj.SolrClient client, org.apache.solr.common.params.SolrParams params, org.apache.solr.common.SolrInputDocument... sdocs) throws IOException, org.apache.solr.client.solrj.SolrServerException
IOException
org.apache.solr.client.solrj.SolrServerException
protected org.apache.solr.client.solrj.response.UpdateResponse del(org.apache.solr.client.solrj.SolrClient client, org.apache.solr.common.params.SolrParams params, Object... ids) throws IOException, org.apache.solr.client.solrj.SolrServerException
IOException
org.apache.solr.client.solrj.SolrServerException
protected org.apache.solr.client.solrj.response.UpdateResponse delQ(org.apache.solr.client.solrj.SolrClient client, org.apache.solr.common.params.SolrParams params, String... queries) throws IOException, org.apache.solr.client.solrj.SolrServerException
IOException
org.apache.solr.client.solrj.SolrServerException
protected void index_specific(int serverNumber, Object... fields) throws Exception
Exception
protected org.apache.solr.client.solrj.response.QueryResponse queryServer(org.apache.solr.common.params.ModifiableSolrParams params) throws org.apache.solr.client.solrj.SolrServerException, IOException
org.apache.solr.client.solrj.SolrServerException
IOException
protected org.apache.solr.client.solrj.response.QueryResponse query(Object... q) throws Exception
queryServer(org.apache.solr.common.params.ModifiableSolrParams)
,Exception
protected org.apache.solr.client.solrj.response.QueryResponse query(org.apache.solr.common.params.SolrParams params) throws Exception
queryServer(org.apache.solr.common.params.ModifiableSolrParams)
,Exception
protected org.apache.solr.client.solrj.response.QueryResponse query(boolean setDistribParams, Object[] q) throws Exception
queryServer(org.apache.solr.common.params.ModifiableSolrParams)
Exception
protected org.apache.solr.client.solrj.response.QueryResponse query(boolean setDistribParams, org.apache.solr.common.params.SolrParams p) throws Exception
queryServer(org.apache.solr.common.params.ModifiableSolrParams)
Exception
public org.apache.solr.client.solrj.response.QueryResponse queryAndCompare(org.apache.solr.common.params.SolrParams params, org.apache.solr.client.solrj.SolrClient... clients) throws org.apache.solr.client.solrj.SolrServerException, IOException
org.apache.solr.client.solrj.SolrServerException
IOException
public org.apache.solr.client.solrj.response.QueryResponse queryAndCompare(org.apache.solr.common.params.SolrParams params, Iterable<org.apache.solr.client.solrj.SolrClient> clients) throws org.apache.solr.client.solrj.SolrServerException, IOException
org.apache.solr.client.solrj.SolrServerException
IOException
public static String compare(org.apache.solr.common.util.NamedList a, org.apache.solr.common.util.NamedList b, int flags, Map<String,Integer> handle)
public static String compare(org.apache.solr.common.SolrDocument a, org.apache.solr.common.SolrDocument b, int flags, Map<String,Integer> handle)
public static String compare(org.apache.solr.common.SolrDocumentList a, org.apache.solr.common.SolrDocumentList b, int flags, Map<String,Integer> handle)
protected void compareSolrResponses(org.apache.solr.client.solrj.SolrResponse a, org.apache.solr.client.solrj.SolrResponse b)
protected void compareResponses(org.apache.solr.client.solrj.response.QueryResponse a, org.apache.solr.client.solrj.response.QueryResponse b)
public static Object[] getRandFields(String[] fields, BaseDistributedSearchTestCase.RandVal[] randVals)
public void validateControlData(org.apache.solr.client.solrj.response.QueryResponse control) throws Exception
Exception
protected String getSolrXml()
protected void seedSolrHome(File jettyHome) throws IOException
getSolrHome()
and ensures that the proper getSolrXml()
file is in place.IOException
protected void setupJettySolrHome(File jettyHome) throws IOException
IOException
Copyright © 2000-2019 Apache Software Foundation. All Rights Reserved.