Property substitution is controlled by the conf/solrcore.properties file. The old solr.xml had a "properties" attribute to control where that file is located, but that feature was removed from the new solr.xml (in Solr 4.4), so the substitution properties must be in the solrcore.properties file in the conf subdirectory of the core.

-- Jack Krupansky

-----Original Message----- From: marotosg
Sent: Friday, October 25, 2013 11:26 AM
To: solr-user@lucene.apache.org
Subject: Re: Global User defined properties - solr.xml from Solr 4.4 to Solr 4.5

Hi Erik. thanks for your help.

I tried with  solr.xml as follow

<solr>
<property name="lucene.version" value="LUCENE_40"/>
</solr>

It fails with this exception
Caused by: org.apache.solr.common.SolrException: No system property or
default value specified for lucene.version value:${lucene.version}

If I put this variable in core.porperties
lucene.version=LUCENE_40.

Do you know if this is a bug?

Thanks
Sergio



--
View this message in context: http://lucene.472066.n3.nabble.com/Global-User-defined-properties-solr-xml-from-Solr-4-4-to-Solr-4-5-tp4097740p4097776.html Sent from the Solr - User mailing list archive at Nabble.com.

Reply via email to