2012-07-11 62 views
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 
+0

忽略這些。只需使用[DIH wiki頁面](http://wiki.apache.org/solr/DataImportHandler#Scheduling)中發佈的說明。我添加了這個(別人的)項目的鏈接,這樣你就不必自己構建jar了。 – 2012-07-11 11:28:04

+0

如果我刪除了reBuildIndexBeginTime屬性,它不會執行delta導入。 – 2012-07-11 13:06:06

+0

你可以在這裏發佈你的整個dataimport.properties文件嗎? – 2012-07-12 07:00:43

回答

1

OK,我答應了,here它。 清理數據導入處理程序編譯源代碼。