On 9/10/10 7:00 AM, Frank Wesemann wrote:
> Hello,
> if I am trying to create a new SolrCore based on an extisting one via
> the CoreAdmin HTTP API,
> 
> http://localhost:8983/solr/admin/cores?action=CREATE&name=newCore&instanceDir=old_instance&schema=newSchema.xml&dataDir=newdata
> <http://localhost:8983/solr/admin/cores?action=CREATE&name=coreX&instanceDir=path_to_instance_directory&config=config_file_name.xml&schema=schem_file_name.xml&dataDir=data>
> 
> 
> the dataDir parameter is ignored.
> Instead the dataDir from the solrconfig.xml is taken in account.
> 
> I had a look at the Sources and saw that the CoreContainer's create()
> method,
> calls the SolrCore Construktor with an dataDir value of "null", which
> leads to a dataDir primarily read from the config and not from the
> CoreDescriptior.
> 
> Shouldn't the CoreDescriptor, being more specific, take precedence over
> the config?
> 


I think so - what version of Solr are you using? I believe I've changed
this on trunk a few months ago.

- Mark

Reply via email to