The downloaded package is put into Tomcat's SOLR app.
The dataimport.properties file in the package is placed under the server/solr/conf directory. (conf directory needs to be created by itself)
Modify dataimport.properties
################################################## ## dataimport scheduler properties ## ######## ########################################### to sync or not to sync# 1 - active; anything else - inactivesyncEnabled=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 deploymentsyncCores=core #改成自己的 # solr server name or ip address# [defaults to localhost if empty]server =localhost# solr server port# [defaults to 80 if empty] port=8080# application name/context# [defaults to current Servletcontextlistener ' s context (APP) name]webapp=solr# url params [ Mandatory]# remainder of urlparams=/core/dataimport?command=delta-import&clean=false &commit=true# schedule interval# number of minutes between Two runs# [defaults to 30 if empty]interval=10
It is necessary to enter the Constitution when the database table plus a timestamp field is used for incremental updates. Other fields are also available.
Import data in the configuration file of entity deltaquery= "... where Last_index_time > ${dataimporter.last_index_time} "
SOLR usage Records-SOLR dataimporter timed tasks