Solr 8.0.0 Delta导入问题

时间:2019-04-26 03:14:29

标签: solr

增量导入无效。没有新的记录被索引。 posts_id是每条记录的唯一ID。

<dataConfig>
<dataSource type="JdbcDataSource"
            driver="com.mysql.jdbc.Driver"
            batchSize="-1"
            autoReconnect="true"
            socketTimeout="0"
            connectTimeout="0"
            encoding="UTF-8"
            url="jdbc:mysql://xxx.xxx.xxx.xx:3306/news?zeroDateTimeBehavior=convertToNull"
            user="admin"
            password="admin"/>
<document>
<!--<entity name="news10" query="select * from news10"
            deltaQuery="select posting_id from item where last_modified > '${dataimporter.last_index_time}'"> 
</entity>-->
<entity name="news10" pk="posting_id"
  query="SELECT * FROM news10"
  deltaImportQuery="SELECT * FROM news10
    WHERE posting_id = '${dataimporter.delta.posting_id}'"
  deltaQuery="SELECT posting_id FROM news10
    WHERE last_modified > '${dataimporter.last_index_time}'">
</entity>
</document>
</dataConfig>

0 个答案:

没有答案