lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dariusz Borowski <darius...@gmail.com>
Subject Reading properties in data-import.xml
Date Thu, 10 Jan 2013 08:58:25 GMT
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 all my data-import files.

For example:

<dataSource
        type="JdbcDataSource"
        driver="com.mysql.jdbc.Driver"
        url="jdbc:mysql://${host}:3306/projectX"
        user="${username}"
        password="${password}" />

I tried everything, but don't know how I can use proporties here. I tried
to put my values in dataimport.properties, located under "SOLR-HOME/conf"
and under "SOLR-HOME/core1/conf", but without any success.

Please, could someone help me on this?

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message