Package zh.solr.se.indexer.util

Examples of zh.solr.se.indexer.util.ConfigProperties


  private LocalListingSolrServerFactory() {
    final Logger logger = Logger.getLogger("org.apache");
    logger.setLevel(Level.ALL);

    // set the Solr home
    final ConfigProperties config = ConfigFactory.getInstance().getConfigProperties(ConfigFactory.SOLR_CONFIG_PATH);
    final String solrHome = config.getProperty(ConfigProperties.CONFIG_NAME_SOLR_HOME, "/var/solr/solr");
    System.setProperty("solr.solr.home", solrHome);

    // a workaround to keep the data import handlers happy since they use a relative path
    final String configFile = "/var/solr/solr/core-local/conf/data-config.xml";
    System.setProperty("data.import.config", configFile);
View Full Code Here

TOP

Related Classes of zh.solr.se.indexer.util.ConfigProperties

Copyright © 2018 www.massapicom. 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.