You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by marotosg <ma...@gmail.com> on 2013/10/25 13:30:11 UTC
Global User defined properties - solr.xml from Solr 4.4 to Solr 4.5
Hi,
I am migrating Solr 4.4 to Solr 4.5 and I have an issue in Solr.xml.
I my old Solr.xml I had some properties I am reusing for all my cores.
Furthemore I have some properties related to each individual core.
<solr>
<property name="lucene.version" value="LUCENE_40"/>
<property name="store.fields" value="true"/>
<cores adminPath="/admin/cores">
<core name="person" instanceDir="person">
<property name="solr.data.dir" value="/var/lib/solrdata/persondata"/>
<property name="poll.interval" value="00:00:05"/>
</core>
<core name="person" instanceDir="company">
<property name="solr.data.dir" value="/var/lib/solrdata/companydata"/>
<property name="poll.interval" value="00:00:60"/>
</core>
</cores>
</solr>
wirh new Solr.xml format in Solr 4.5. I can introduce core related
properties in core.properties file
but I can't find anywhere how I can set up global properties like
<property name="lucene.version" value="LUCENE_40"/>
Regards,
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-tp4097740.html
Sent from the Solr - User mailing list archive at Nabble.com.
Re: Global User defined properties - solr.xml from Solr 4.4 to Solr
4.5
Posted by marotosg <ma...@gmail.com>.
Done
https://issues.apache.org/jira/browse/SOLR-5398
--
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-tp4097740p4098143.html
Sent from the Solr - User mailing list archive at Nabble.com.
Re: Global User defined properties - solr.xml from Solr 4.4 to Solr 4.5
Posted by Mark Miller <ma...@gmail.com>.
Can you file a JIRA issue?
- Mark
On Oct 25, 2013, at 12:52 PM, marotosg <ma...@gmail.com> wrote:
> Right, but what if you have many properties being shared across multiple
> cores.
> That means you have to copy same properties in each individual
> core.properties.
>
> Is not this redundant data.
>
> My main problem is I would like to keep several properties at solr level not
> to core level.
>
> Thanka a lot
> 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-tp4097740p4097789.html
> Sent from the Solr - User mailing list archive at Nabble.com.
Re: Global User defined properties - solr.xml from Solr 4.4 to Solr 4.5
Posted by Jack Krupansky <ja...@basetechnology.com>.
Yes, it is unfortunate that the "properties" property was removed.
-- Jack Krupansky
-----Original Message-----
From: marotosg
Sent: Friday, October 25, 2013 12:52 PM
To: solr-user@lucene.apache.org
Subject: Re: Global User defined properties - solr.xml from Solr 4.4 to Solr
4.5
Right, but what if you have many properties being shared across multiple
cores.
That means you have to copy same properties in each individual
core.properties.
Is not this redundant data.
My main problem is I would like to keep several properties at solr level not
to core level.
Thanka a lot
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-tp4097740p4097789.html
Sent from the Solr - User mailing list archive at Nabble.com.
Re: Global User defined properties - solr.xml from Solr 4.4 to Solr
4.5
Posted by marotosg <ma...@gmail.com>.
Right, but what if you have many properties being shared across multiple
cores.
That means you have to copy same properties in each individual
core.properties.
Is not this redundant data.
My main problem is I would like to keep several properties at solr level not
to core level.
Thanka a lot
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-tp4097740p4097789.html
Sent from the Solr - User mailing list archive at Nabble.com.
Re: Global User defined properties - solr.xml from Solr 4.4 to Solr 4.5
Posted by Jack Krupansky <ja...@basetechnology.com>.
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.
Re: Global User defined properties - solr.xml from Solr 4.4 to Solr
4.5
Posted by marotosg <ma...@gmail.com>.
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.
Re: Global User defined properties - solr.xml from Solr 4.4 to Solr 4.5
Posted by Erick Erickson <er...@gmail.com>.
They _should_ be just the same. The new solr.xml format just works
by moving the individual <core> tags and putting the properties
in individual core.properties, and removing the <cores> tag completely.
So the "global" properties you refer to should be unaffected. But I haven't
verified this personally.
FWIW,
Erick
On Fri, Oct 25, 2013 at 7:30 AM, marotosg <ma...@gmail.com> wrote:
> Hi,
> I am migrating Solr 4.4 to Solr 4.5 and I have an issue in Solr.xml.
>
> I my old Solr.xml I had some properties I am reusing for all my cores.
> Furthemore I have some properties related to each individual core.
>
> <solr>
> <property name="lucene.version" value="LUCENE_40"/>
> <property name="store.fields" value="true"/>
> <cores adminPath="/admin/cores">
> <core name="person" instanceDir="person">
> <property name="solr.data.dir"
> value="/var/lib/solrdata/persondata"/>
> <property name="poll.interval" value="00:00:05"/>
> </core>
> <core name="person" instanceDir="company">
> <property name="solr.data.dir"
> value="/var/lib/solrdata/companydata"/>
> <property name="poll.interval" value="00:00:60"/>
> </core>
> </cores>
> </solr>
>
> wirh new Solr.xml format in Solr 4.5. I can introduce core related
> properties in core.properties file
> but I can't find anywhere how I can set up global properties like
> <property name="lucene.version" value="LUCENE_40"/>
>
> Regards,
> 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-tp4097740.html
> Sent from the Solr - User mailing list archive at Nabble.com.
>