0
在维基页面http://code.google.com/p/solr-dataimport-scheduler/in solrImportScheduler为什么我们需要为delta导入定义reBuildIndexBeginTime?
params=/dataimport?command=delta-import&clean=false&commit=true
interval=1
,什么是该行
reBuildIndexBeginTime=03:10:00
的目的,如果我注释掉reBuildIndexBeginTime=03:10:00
指数从未运行的增量导入。 什么是reBuildIndexBeginTime = 03:10:00,为什么我们将它用于delta导入?在我的Solr,多核安装
dataimport.properties文件
#################################################
# #
# 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=hkc-core
# solr server name or IP address
# [defaults to localhost if empty]
server=localhost
# solr server port
# [defaults to 80 if empty]
port=1666
# application name/context
# [defaults to current ServletContextListener's context (app) name]
webapp=solr-multicore
# 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]
interval=1
#reBuildIndexInterval=7200
#reBuildIndexParams=/dataimport?command=full-import&clean=true&commit=true
reBuildIndexBeginTime=00:00:00
忽略这些。只需使用[DIH wiki页面](http://wiki.apache.org/solr/DataImportHandler#Scheduling)中发布的说明。我添加了这个(别人的)项目的链接,这样你就不必自己构建jar了。 – 2012-07-11 11:28:04
如果我删除了reBuildIndexBeginTime属性,它不会执行delta导入。 – 2012-07-11 13:06:06
你可以在这里发布你的整个dataimport.properties文件吗? – 2012-07-12 07:00:43