Solr delta import does not work

后端 未结 2 831
不知归路
不知归路 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!

提交回复
热议问题