public class MtasSolrTestDistributedSearchConsistency extends Object
Modifier and Type | Field and Description |
---|---|
private static Path |
cloudBaseDir
The cloud base dir.
|
private static org.apache.solr.cloud.MiniSolrCloudCluster |
cloudCluster
The cloud cluster.
|
private static String |
COLLECTION_ALL_MULTIPLE_SEGMENTS
The Constant COLLECTION_ALL_MULTIPLE_SEGMENTS.
|
private static String |
COLLECTION_ALL_OPTIMIZED
The Constant COLLECTION_ALL_OPTIMIZED.
|
private static String |
COLLECTION_DISTRIBUTED
The Constant COLLECTION_DISTRIBUTED.
|
private static String |
COLLECTION_PART1_OPTIMIZED
The Constant COLLECTION_PART1_OPTIMIZED.
|
private static String |
COLLECTION_PART2_MULTIPLE_SEGMENTS
The Constant COLLECTION_PART2_MULTIPLE_SEGMENTS.
|
private static org.apache.commons.logging.Log |
log
The log.
|
private static Map<Integer,org.apache.solr.common.SolrInputDocument> |
solrDocuments
The solr documents.
|
Constructor and Description |
---|
MtasSolrTestDistributedSearchConsistency() |
Modifier and Type | Method and Description |
---|---|
void |
cqlQueryParser()
Cql query parser.
|
void |
cqlQueryParserFilter()
Cql query parser filter.
|
private static void |
createCloud()
Creates the cloud.
|
private static void |
createCloudCollection(String collectionName,
int numShards,
int replicationFactor,
Path confDir)
Creates the cloud collection.
|
private static void |
createCollectionAssertions(org.apache.solr.common.util.NamedList<Object> create,
String collection,
String id,
String version,
Number size,
int shards)
Creates the collection assertions.
|
private static void |
createPrefixAssertions(org.apache.solr.common.util.NamedList<Object> response1,
org.apache.solr.common.util.NamedList<Object> response2,
String key)
Creates the prefix assertions.
|
private static HashMap<String,org.apache.solr.client.solrj.response.QueryResponse> |
createResults(org.apache.solr.common.params.ModifiableSolrParams initialParams,
List<String> collections)
Creates the results.
|
private static void |
createStatsAssertions(org.apache.solr.common.util.NamedList<Object> response1,
org.apache.solr.common.util.NamedList<Object>[] responses2,
String type,
String key,
String[] names)
Creates the stats assertions.
|
private static void |
createStatsAssertions(org.apache.solr.common.util.NamedList<Object> response1,
org.apache.solr.common.util.NamedList<Object> response2,
String type,
String key,
String[] names)
Creates the stats assertions.
|
private static void |
createTermvectorAssertions(org.apache.solr.common.util.NamedList<Object> response1,
org.apache.solr.common.util.NamedList<Object> response2,
String key,
String[] names)
Creates the termvector assertions.
|
void |
mtasRequestHandlerCollection1()
Mtas request handler collection 1.
|
void |
mtasRequestHandlerCollection2()
Mtas request handler collection 2.
|
void |
mtasRequestHandlerPrefix()
Mtas request handler prefix.
|
void |
mtasRequestHandlerStatsPositions()
Mtas request handler stats positions.
|
void |
mtasRequestHandlerStatsSpans()
Mtas request handler stats spans.
|
void |
mtasRequestHandlerStatsTokens()
Mtas request handler stats tokens.
|
void |
mtasRequestHandlerTermvector1()
Mtas request handler termvector 1.
|
void |
mtasRequestHandlerTermvector2()
Mtas request handler termvector 2.
|
static void |
setup()
Setup.
|
static void |
shutdown()
Shutdown.
|
private static void |
shutdownCloud()
Shutdown cloud.
|
private static org.apache.commons.logging.Log log
private static final String COLLECTION_ALL_OPTIMIZED
private static final String COLLECTION_ALL_MULTIPLE_SEGMENTS
private static final String COLLECTION_PART1_OPTIMIZED
private static final String COLLECTION_PART2_MULTIPLE_SEGMENTS
private static final String COLLECTION_DISTRIBUTED
private static org.apache.solr.cloud.MiniSolrCloudCluster cloudCluster
private static Path cloudBaseDir
public MtasSolrTestDistributedSearchConsistency()
public static void setup()
public static void shutdown()
public void cqlQueryParser()
public void cqlQueryParserFilter()
public void mtasRequestHandlerStatsTokens() throws IOException
IOException
- Signals that an I/O exception has occurred.public void mtasRequestHandlerStatsPositions() throws IOException
IOException
- Signals that an I/O exception has occurred.public void mtasRequestHandlerStatsSpans() throws IOException
IOException
- Signals that an I/O exception has occurred.public void mtasRequestHandlerTermvector1() throws IOException
IOException
- Signals that an I/O exception has occurred.public void mtasRequestHandlerTermvector2() throws IOException
IOException
- Signals that an I/O exception has occurred.public void mtasRequestHandlerCollection1() throws IOException
IOException
- Signals that an I/O exception has occurred.public void mtasRequestHandlerCollection2() throws IOException
IOException
- Signals that an I/O exception has occurred.public void mtasRequestHandlerPrefix() throws IOException
IOException
- Signals that an I/O exception has occurred.private static HashMap<String,org.apache.solr.client.solrj.response.QueryResponse> createResults(org.apache.solr.common.params.ModifiableSolrParams initialParams, List<String> collections)
initialParams
- the initial paramscollections
- the collectionsprivate static void createStatsAssertions(org.apache.solr.common.util.NamedList<Object> response1, org.apache.solr.common.util.NamedList<Object> response2, String type, String key, String[] names)
response1
- the response 1response2
- the response 2type
- the typekey
- the keynames
- the namesprivate static void createStatsAssertions(org.apache.solr.common.util.NamedList<Object> response1, org.apache.solr.common.util.NamedList<Object>[] responses2, String type, String key, String[] names)
response1
- the response 1responses2
- the responses 2type
- the typekey
- the keynames
- the namesprivate static void createPrefixAssertions(org.apache.solr.common.util.NamedList<Object> response1, org.apache.solr.common.util.NamedList<Object> response2, String key)
response1
- the response 1response2
- the response 2key
- the keyprivate static void createTermvectorAssertions(org.apache.solr.common.util.NamedList<Object> response1, org.apache.solr.common.util.NamedList<Object> response2, String key, String[] names)
response1
- the response 1response2
- the response 2key
- the keynames
- the namesprivate static void createCollectionAssertions(org.apache.solr.common.util.NamedList<Object> create, String collection, String id, String version, Number size, int shards)
create
- the createcollection
- the collectionid
- the idversion
- the versionsize
- the sizeshards
- the shardsprivate static void createCloud()
private static void createCloudCollection(String collectionName, int numShards, int replicationFactor, Path confDir) throws Exception
collectionName
- the collection namenumShards
- the num shardsreplicationFactor
- the replication factorconfDir
- the conf dirException
- the exceptionprivate static void shutdownCloud()
Copyright © 2018 Meertens Institute. All rights reserved.