我正在使用Solr 4.4,我无法使用网址进行delta导入,我的
完全导入运行良好。我有两个表资源和resource_data给定
以下
http://localhost:8983/solr/collection1/dataimport?command=delta-import&commit=true
字段:ref(PK),fields ..,last_modified(TIMESTAMP)
字段:资源(资源表PK),值,last_modified(TIMESTAMP)
<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>