Solr Mongo/DocDB Delta Import Query is not working

前端 未结 1 1127
北恋
北恋 2021-01-16 02:15

I am trying to import data from Document DB to solr-5.4.1. Full import is executing properly but delta import is not working. When I execute delta import nothing happens

相关标签:
1条回答
  • 2021-01-16 02:54

    The correct way to use the deltaQuery is

    deltaQuery="{'lastUpdatedDate':{$exists:true},'lastUpdatedDate':{$gt: {$date:'2020-03-13T08:44:06.959Z'}}}"
    

    as you can see here

    However, the SOLR will use ${dih.last_index_time} that is by default formated as 2020-03-13 08:44:06. You'll need to change the format by adding something like the following setting inside your <dateConfig> element.

    <propertyWriter dateFormat="yyyy-MM-dd'T'HH:mm:ss.SSSXXX" type="SimplePropertiesWriter" filename="my_dih.properties" locale="en-US"  />
    
    0 讨论(0)
提交回复
热议问题