使用solr4.10.2 delta导入,但不起作用

时间:2015-05-05 09:03:29

标签: mysql solr

<entity name="id" pk="id" query="select * from user;" 
                    deltaImportQuery="select * from user where id='${dataimporter.delta.id}';"
                    deltaQuey="select id from user where create_time > '${dataimporter.last_index_time}';">
            </entity>

solr 4.10.2完全导入效果很好,但delta导入不起作用,mysql create_time是时间戳

tomcat日志:

2871263 [Thread-10] INFO  org.apache.solr.handler.dataimport.DataImporter  [   ] ?.Starting Delta Import
2871270 [Thread-10] INFO  org.apache.solr.handler.dataimport.SimplePropertiesWriter  [   ] ?.Read dataimport.properties
2871278 [Thread-10] INFO  org.apache.solr.search.SolrIndexSearcher  [   ] ?.Opening Searcher@7dd0425a[collection1] realtime
2871282 [Thread-10] INFO  org.apache.solr.handler.dataimport.DocBuilder  [   ] ?.Starting delta collection.
2871288 [Thread-10] INFO  org.apache.solr.handler.dataimport.DocBuilder  [   ] ?.Running ModifiedRowKey() for Entity: id
2871293 [Thread-10] INFO  org.apache.solr.handler.dataimport.DocBuilder  [   ] ?.Completed ModifiedRowKey for Entity: id rows obtained : 0
2871293 [Thread-10] INFO  org.apache.solr.handler.dataimport.DocBuilder  [   ] ?.Completed DeletedRowKey for Entity: id rows obtained : 0
2871296 [Thread-10] INFO  org.apache.solr.handler.dataimport.DocBuilder  [   ] ?.Completed parentDeltaQuery for Entity: id
2871297 [Thread-10] INFO  org.apache.solr.handler.dataimport.DocBuilder  [   ] ?.Delta Import completed successfully
2871298 [Thread-10] INFO  org.apache.solr.handler.dataimport.DocBuilder  [   ] ?.Import completed successfully

同样没有查询mysql

0 个答案:

没有答案