On 1/20/2012 3:48 PM, Walter Underwood wrote:
Is there a way to parameterize the JDBC URL in the data import handler? I
tried this, but it did not insert the value of the property. I'm running Solr
3.3.0.
<dataSource driver="com.mysql.jdbc.Driver"
url="jdbc:mysql://${com.chegg.dbhost}/product"
wunder
--
Walter Underwood
wun...@wunderwood.org
Here's what I've got in mine. I pass in dbHost and dbSchema parameters
(along with a bunch of others that get used in the entity SQL
statements) when starting DIH.
url="jdbc:mysql://${dataimporter.request.dbHost}:3306/${dataimporter.request.dbSchema}?zeroDateTimeBehavior=convertToNull"
Thanks,
Shawn