Index directory disagreement SolrCore#initIndex
-----------------------------------------------

                 Key: SOLR-1962
                 URL: https://issues.apache.org/jira/browse/SOLR-1962
             Project: Solr
          Issue Type: Bug
            Reporter: Mark Miller
            Assignee: Mark Miller
             Fix For: Next


getNewIndexDir is widely used in this method - but then when a new index is 
created, getIndexDir is used:

{code}
      // Create the index if it doesn't exist.
      if(!indexExists) {
        log.warn(logid+"Solr index directory '" + new File(getNewIndexDir()) + 
"' doesn't exist."
                + " Creating new index...");

        SolrIndexWriter writer = new SolrIndexWriter("SolrCore.initIndex", 
getIndexDir(), getDirectoryFactory(), true, schema, solrConfig.mainIndexConfig, 
solrDelPolicy);
        writer.close();
      }
{code}



-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to