On 7 March 2014 08:50, Pritesh Patel <priteshpate...@gmail.com> wrote: > I'm using the dataimporthandler to index data from a mysql DB. Been > running it just fine. I've been using full-imports. I'm now trying > implement the delta import functionality. > > To implement the delta query, you need to be reading the last_index_time > from a properties file to know what new to index. So I'm using the > parameter: > {dataimporter.last_index_time} within my query. > > The problem is when I use this, the date always is : "Thu Jan 01 00:00:00 > UTC 1970". It's never actually reading the correct date stored in the > dataimport.properties file. [...]
I take it that you have verified that the dataimport.properties file exists. What are its contents? Please share the exact DIH configuration file that you use, obfuscating DB password/username. Your cut-and-paste seems to have a syntax error in the deltaQuery (notice the 'jgkg' string): deltaQuery="SELECT node.nid from node where node.type = 'news' and node.status = 1 and (node.changed > UNIX_TIMESTAMP('${ dataimporter.last_index_time}'jgkg) or node.created > UNIX_TIMESTAMP('${dataimporter.last_index_time}'))" What response do you get fromm the delta-import URL? Are there any error messages in your Solr log? Regards, Gora