更新数据后的delta导入

时间:2016-08-22 19:32:37

标签: solr

我正在使用Solr 4.4,我无法使用网址进行delta导入,我的

完全导入运行良好。我有两个表资源和resource_data给定

以下

我的Delta导入网址

http://localhost:8983/solr/collection1/dataimport?command=delta-import&commit=true

资源

字段:ref(PK),fields ..,last_modified(TIMESTAMP)

Resource_data

字段:资源(资源表PK),值,last_modified(TIMESTAMP)

数据-config.xml中

<document name="resource">   
  <entity name="resource" query="SELECT * FROM resource r where ref > 0  and '${dataimporter.request.clean}' != 'false'
      OR last_modified > '${dataimporter.last_index_time}'" >    
    <field column="ref" name="ref"/>    

<entity name="MarketingActivity"  
          query="SELECT VALUE as MarketingActivity FROM `resource_data` WHERE  resource_type_field=81 AND  resource='${resource.ref}'  "
          deltaImportQuery="SELECT * FROM resource_data  WHERE resource_type_field=81 and resource = '${dataimporter.delta.ref}'"
          deltaQuery="SELECT resource FROM resource_data WHERE resource_type_field=81 and last_modified > '${dataimporter.last_index_time}'" >
      <field column="MarketingActivity"  name="MarketingActivity"/> 
    </entity>  

 </entity>   
 </document>
</dataConfig>

0 个答案:

没有答案