SolR 增量导入参数
SolR Delta Import parameter
我正在尝试在我的 solr delta 导入中使用参数 (id):
我的dataimport.xml
<document name="products">
<entity name="products" rootEntity="true" query="SELECT * FROM products" deltaQuery="SELECT * FROM products WHERE id = ${dih.delta.id}" transformer="script:addValue">
....
完全导入工作正常,但是 ${dih.delta.id} return 没有...
我的要求:http://localhost:8983/solr/dataimport?command=delta-import&id=8
有人可以解释我错了吗?
我只是将 ${dih.delta.id} 替换为 ${dih.request.id} ,现在它可以工作了!
我正在尝试在我的 solr delta 导入中使用参数 (id):
我的dataimport.xml
<document name="products">
<entity name="products" rootEntity="true" query="SELECT * FROM products" deltaQuery="SELECT * FROM products WHERE id = ${dih.delta.id}" transformer="script:addValue">
....
完全导入工作正常,但是 ${dih.delta.id} return 没有...
我的要求:http://localhost:8983/solr/dataimport?command=delta-import&id=8
有人可以解释我错了吗?
我只是将 ${dih.delta.id} 替换为 ${dih.request.id} ,现在它可以工作了!