Solr delta import does not work

后端 未结 2 829
不知归路
不知归路 2021-01-23 22:29

I am using solr 4.2. Note that full import works but somehow delta import doesn\'t. Delta import does not give any error but never fetches any changes. Here\'s the data config f

相关标签:
2条回答
  • 2021-01-23 23:10

    If you don't want to use ${dih.last_index_time} (server's time config problem), you can try mysql query like:

    deltaImportQuery="SELECT * FROM table_name where id='${dataimporter.delta.id}'"
    deltaQuery="select id from table_name where update_time  > SUBTIME( NOW( ) , '0:15:0' )
    

    I used with crontab and worked fine!

    0 讨论(0)
  • 2021-01-23 23:25

    This is fixed. The issue was solr box was on UTC timezone. Once I converted that to ET timezone, delta import started working fine. Hope this helps someone else.

    0 讨论(0)
提交回复
热议问题