Re: Reading properties in data-import.xml

2013-01-11 Thread Dariusz Borowski
Thanks Alex! This brought me to the solution I wanted to achieve. :) D. On Thu, Jan 10, 2013 at 3:21 PM, Alexandre Rafalovitch arafa...@gmail.comwrote: dataimport.properties is for DIH to store it's own properties for delta processing and things. Try solrcore.properties instead, as per

Reading properties in data-import.xml

2013-01-10 Thread Dariusz Borowski
I'm having a problem using a property file in my data-import.xml file. My aim is to not hard code some values inside my xml file, but rather reusing the values from a property file. I'm using multicore and some of the values are being changed from time to time and I do not want to change them in

Reading properties in data-import.xml

2013-01-10 Thread Dariusz Borowski
I'm having a problem using a property file in my data-import.xml file. My aim is to not hard code some values inside my xml file, but rather reusing the values from a property file. I'm using multicore and some of the values are being changed from time to time and I do not want to change them in

Re: Reading properties in data-import.xml

2013-01-10 Thread Alexandre Rafalovitch
dataimport.properties is for DIH to store it's own properties for delta processing and things. Try solrcore.properties instead, as per recent discussion: http://lucene.472066.n3.nabble.com/Reading-database-connection-properties-from-external-file-td4031154.html Regards, Alex. Personal blog:

Re: Reading properties in data-import.xml

2013-01-10 Thread Dariusz Borowski
Thanks Alexandre! I followed your example and created a solrcore.properties in solr.home/conf/solrcore.properties. I created a symlink in my core/conf to the solrcore.properties file, but I can't read the properties. My properties file: username=myusername password=mypassword My

RE: Reading properties in data-import.xml

2013-01-10 Thread Swati Swoboda
Your syntax is correct in DIH, I think all you are missing is the reference to the property file in solr.xml. -Original Message- From: Dariusz Borowski [mailto:darius...@gmail.com] Sent: Thursday, January 10, 2013 10:38 AM To: solr-user@lucene.apache.org Subject: Re: Reading properties