My log log is normal
2016-10-27 13:25:25.938 INFO (Thread-22) [ x:les] o.a.s.u.p.LogUpdateProcessorFactory [les] webapp=/solr path=/dataimport params={commit=true&clean=false&command=delta-import} status=0 QTime=11{} 0 45
2016-10-27 13:27:25.886 INFO (Timer-0) [ ] o.a.s.h.d.s.BaseTimerTask [les] Process started at .............. 27.10.2016 13:27:25 886
2016-10-27 13:27:25.891 INFO (Timer-0) [ ] o.a.s.h.d.s.BaseTimerTask [les] Full URL http://localhost:8983/solr/les/dataimport?command=delta-import&clean=false&commit=true
2016-10-27 13:27:25.897 INFO (qtp12209492-13) [ x:les] o.a.s.h.d.DataImporter Loading DIH Configuration: db-data-config.xml
2016-10-27 13:27:25.903 INFO (qtp12209492-13) [ x:les] o.a.s.h.d.DataImporter Data Configuration loaded successfully
2016-10-27 13:27:25.905 INFO (Thread-23) [ x:les] o.a.s.h.d.DataImporter Starting Delta Import
2016-10-27 13:27:25.905 INFO (qtp12209492-13) [ x:les] o.a.s.c.S.Request [les] webapp=/solr path=/dataimport params={commit=true&clean=false&command=delta-import} status=0 QTime=9
2016-10-27 13:27:25.906 INFO (Thread-23) [ x:les] o.a.s.h.d.SimplePropertiesWriter Read dataimport.properties
2016-10-27 13:27:25.910 INFO (Timer-0) [ ] o.a.s.h.d.s.BaseTimerTask [les] Response message OK
2016-10-27 13:27:25.911 INFO (Timer-0) [ ] o.a.s.h.d.s.BaseTimerTask [les] Response code 200
2016-10-27 13:27:25.912 INFO (Timer-0) [ ] o.a.s.h.d.s.BaseTimerTask [les] Disconnected from server localhost
2016-10-27 13:27:25.913 INFO (Timer-0) [ ] o.a.s.h.d.s.BaseTimerTask [les] Process ended at ................ 27.10.2016 13:27:25 913
2016-10-27 13:27:25.918 INFO (Thread-23) [ x:les] o.a.s.h.d.DocBuilder Starting delta collection.
2016-10-27 13:27:25.919 INFO (Thread-23) [ x:les] o.a.s.h.d.DocBuilder Running ModifiedRowKey() for Entity: lnl
2016-10-27 13:27:25.919 INFO (Thread-23) [ x:les] o.a.s.h.d.JdbcDataSource Creating a connection for entity lnl with URL: jdbc:mysql://localhost:3306/test
2016-10-27 13:27:25.934 INFO (Thread-23) [ x:les] o.a.s.h.d.JdbcDataSource Time taken for getConnection(): 15
2016-10-27 13:27:25.935 INFO (Thread-23) [ x:les] o.a.s.h.d.DocBuilder Completed ModifiedRowKey for Entity: lnl rows obtained : 0
2016-10-27 13:27:25.936 INFO (Thread-23) [ x:les] o.a.s.h.d.DocBuilder Completed DeletedRowKey for Entity: lnl rows obtained : 0
2016-10-27 13:27:25.936 INFO (Thread-23) [ x:les] o.a.s.h.d.DocBuilder Completed parentDeltaQuery for Entity: lnl
2016-10-27 13:27:25.936 INFO (Thread-23) [ x:les] o.a.s.h.d.DocBuilder Delta Import completed successfully
but I search of data by the client or the previous data is not loaded from the database ,I set the load time is two minutes at a time
dataimport scheduler properties
to sync or not to sync
1 - active; anything else - inactive
syncEnabled=1
which cores to schedule
in a multi-core environment you can decide which cores you want syncronized
leave empty or comment it out if using single-core deployment
syncCores=les
solr server name or IP address
[defaults to localhost if empty]
server=localhost
solr server port
[defaults to 80 if empty]
port=8983
application name/context
[defaults to current ServletContextListener's context (app) name]
2016-10-27 13:27:25.886 INFO (Timer-0) [ ] o.a.s.h.d.s.BaseTimerTask [les] Process started at .............. 27.10.2016 13:27:25 886
2016-10-27 13:27:25.891 INFO (Timer-0) [ ] o.a.s.h.d.s.BaseTimerTask [les] Full URL http://localhost:8983/solr/les/dataimport?command=delta-import&clean=false&commit=true
2016-10-27 13:27:25.897 INFO (qtp12209492-13) [ x:les] o.a.s.h.d.DataImporter Loading DIH Configuration: db-data-config.xml
2016-10-27 13:27:25.903 INFO (qtp12209492-13) [ x:les] o.a.s.h.d.DataImporter Data Configuration loaded successfully
2016-10-27 13:27:25.905 INFO (Thread-23) [ x:les] o.a.s.h.d.DataImporter Starting Delta Import
2016-10-27 13:27:25.905 INFO (qtp12209492-13) [ x:les] o.a.s.c.S.Request [les] webapp=/solr path=/dataimport params={commit=true&clean=false&command=delta-import} status=0 QTime=9
2016-10-27 13:27:25.906 INFO (Thread-23) [ x:les] o.a.s.h.d.SimplePropertiesWriter Read dataimport.properties
2016-10-27 13:27:25.910 INFO (Timer-0) [ ] o.a.s.h.d.s.BaseTimerTask [les] Response message OK
2016-10-27 13:27:25.911 INFO (Timer-0) [ ] o.a.s.h.d.s.BaseTimerTask [les] Response code 200
2016-10-27 13:27:25.912 INFO (Timer-0) [ ] o.a.s.h.d.s.BaseTimerTask [les] Disconnected from server localhost
2016-10-27 13:27:25.913 INFO (Timer-0) [ ] o.a.s.h.d.s.BaseTimerTask [les] Process ended at ................ 27.10.2016 13:27:25 913
2016-10-27 13:27:25.918 INFO (Thread-23) [ x:les] o.a.s.h.d.DocBuilder Starting delta collection.
2016-10-27 13:27:25.919 INFO (Thread-23) [ x:les] o.a.s.h.d.DocBuilder Running ModifiedRowKey() for Entity: lnl
2016-10-27 13:27:25.919 INFO (Thread-23) [ x:les] o.a.s.h.d.JdbcDataSource Creating a connection for entity lnl with URL: jdbc:mysql://localhost:3306/test
2016-10-27 13:27:25.934 INFO (Thread-23) [ x:les] o.a.s.h.d.JdbcDataSource Time taken for getConnection(): 15
2016-10-27 13:27:25.935 INFO (Thread-23) [ x:les] o.a.s.h.d.DocBuilder Completed ModifiedRowKey for Entity: lnl rows obtained : 0
2016-10-27 13:27:25.936 INFO (Thread-23) [ x:les] o.a.s.h.d.DocBuilder Completed DeletedRowKey for Entity: lnl rows obtained : 0
2016-10-27 13:27:25.936 INFO (Thread-23) [ x:les] o.a.s.h.d.DocBuilder Completed parentDeltaQuery for Entity: lnl
2016-10-27 13:27:25.936 INFO (Thread-23) [ x:les] o.a.s.h.d.DocBuilder Delta Import completed successfully
but I search of data by the client or the previous data is not loaded from the database ,I set the load time is two minutes at a time
dataimport scheduler properties
to sync or not to sync
1 - active; anything else - inactive
syncEnabled=1
which cores to schedule
in a multi-core environment you can decide which cores you want syncronized
leave empty or comment it out if using single-core deployment
syncCores=les
solr server name or IP address
[defaults to localhost if empty]
server=localhost
solr server port
[defaults to 80 if empty]
port=8983
application name/context
[defaults to current ServletContextListener's context (app) name]
webapp=solr
URL params [mandatory]
remainder of URL
增量更新的请求参数
params=/dataimport?command=delta-import&clean=false&commit=true
schedule interval
number of minutes between two runs
[defaults to 30 if empty]
这里配置的是2min一次
interval=2
重做索引的时间间隔,单位分钟,默认7200,即5天;
为空,为0,或者注释掉:表示永不重做索引
reBuildIndexInterval=1440
重做索引的参数
reBuildIndexParams=/dataimport?command=full-import&clean=true&commit=true
重做索引时间间隔的计时开始时间,第一次真正执行的时间=reBuildIndexBeginTime+reBuildIndexInterval_60_1000;
两种格式:2012-04-11 03:10:00 或者 03:10:00,后一种会自动补全日期部分为服务启动时的日期
reBuildIndexBeginTime=21:10:09