Package org.apache.solr.core

Examples of org.apache.solr.core.CoreContainer.load()


        return super.create(new CoreDescriptor(coreDescriptor.getCoreContainer(), coreDescriptor
            .getName(), coreDescriptor.getInstanceDir(), properties));
      }
    };
    // Initialize cores
    cores.load();

    logger.info("Solr home directory: {}", solrHome);
    for (Entry<String, String> core : coreDefs.entrySet()) {
      logger.info("  core: {}, dataDir: {}", core.getKey(), core.getValue());
    }
View Full Code Here


        coreDescriptor.setDataDir(coreDataDir);
        return super.create(coreDescriptor);
      }
    };
    // Initialize cores
    cores.load(solrHome.getAbsolutePath(), solrXml);

    logger.info("Solr home directory: {}", solrHome);
    for (Entry<String, String> core : coreDefs.entrySet()) {
      logger.info("  core: {}, dataDir: {}", core.getKey(), core.getValue());
    }
View Full Code Here

                ClassLoader classLoader = Thread.currentThread().getContextClassLoader();
                Thread.currentThread().setContextClassLoader(CoreContainer.class.getClassLoader());

                CoreContainer coreContainer = new CoreContainer(solrHomePath);
                try {
                    coreContainer.load();
                } finally {
                    Thread.currentThread().setContextClassLoader(classLoader);
                }

                EmbeddedSolrServer server = new EmbeddedSolrServer(coreContainer, coreName);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.