James can elaborate how to process driver="${dataimporter.request.driver}" url ="${dataimporter.request.url}" and all where to mention these my purpose is to config my DB Details(url,uname,password) in properties file
-----Original Message----- From: Dyer, James [mailto:james.d...@ingramcontent.com] Sent: Wednesday, November 06, 2013 7:42 PM To: solr-user@lucene.apache.org Subject: RE: Data Import Handler If you prepend the variable name with "dataimporter.request", you can include variables like these as request parameters: <dataSource name="ds" driver="${dataimporter.request.driver}" url="${dataimporter.request.url}" /> /dih?driver=some.driver.class&url=jdbc:url:something If you want to include these in solrcore.properties, you can additionally add each property to solrconfig.xml like this: <requestHandler name="/dih" class="org.apache.solr.handler.dataimport.DataImportHandler"> <lst name="defaults"> <str name="driver">${dih.driver}</str> <str name="url">${dih.url}</str> </lst> </requestHandler> Then in solrcore.properties: dih.driver=some.driver.class dih.url=jdbc:url:something See http://wiki.apache.org/solr/SolrConfigXml?#System_property_substitution James Dyer Ingram Content Group (615) 213-4311 -----Original Message----- From: Ramesh [mailto:ramesh.po...@vensaiinc.com] Sent: Wednesday, November 06, 2013 7:25 AM To: solr-user@lucene.apache.org Subject: Data Import Handler Hi Folks, Can anyone suggest me how can customize dataconfig.xml file I want to provide database details like( db_url,uname,password ) from my own properties file instead of dataconfig.xaml file