【问题标题】:SolR Delta Import parameterSolR 增量导入参数
【发布时间】:2015-09-02 09:14:34
【问题描述】:

我正在尝试在我的 solr delta 导入中使用参数 (id):

我的数据导入.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} 什么都不返回...

我的要求:http://localhost:8983/solr/dataimport?command=delta-import&id=8

有人可以解释我错了吗?

【问题讨论】:

    标签: solr parameters


    【解决方案1】:

    我只是将 ${dih.delta.id} 替换为 ${dih.request.id} ,现在它可以工作了!

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-08-27
      • 1970-01-01
      • 1970-01-01
      • 2011-07-09
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多