Search in sources :

Example 1 with CoresLocator

use of org.apache.solr.core.CoresLocator in project lucene-solr by apache.

the class SolrTestCaseJ4 method createCoreContainer.

public static CoreContainer createCoreContainer(String coreName, String dataDir, String solrConfig, String schema) {
    NodeConfig nodeConfig = TestHarness.buildTestNodeConfig(new SolrResourceLoader(TEST_PATH()));
    CoresLocator locator = new TestHarness.TestCoresLocator(coreName, dataDir, solrConfig, schema);
    CoreContainer cc = createCoreContainer(nodeConfig, locator);
    h.coreName = coreName;
    return cc;
}
Also used : SolrResourceLoader(org.apache.solr.core.SolrResourceLoader) CoreContainer(org.apache.solr.core.CoreContainer) CoresLocator(org.apache.solr.core.CoresLocator) NodeConfig(org.apache.solr.core.NodeConfig)

Aggregations

CoreContainer (org.apache.solr.core.CoreContainer)1 CoresLocator (org.apache.solr.core.CoresLocator)1 NodeConfig (org.apache.solr.core.NodeConfig)1 SolrResourceLoader (org.apache.solr.core.SolrResourceLoader)1