solr定时与数据库同步数据
-
配置准备:
-
需要(solr-dataimport-scheduler.jar)适用于7.3的jar包(有需要的可以留下邮箱)
-
dataimport.properties配置文件
-
新建数据库字段updateTime,并设置根据时间戳更新
-
dataimport.properties配置文件内容如下(需要更改已标出)
################################################# # # # dataimport scheduler properties # # # ################################################# # to sync or not to sync # 1 - active; anything else - inactive # 这里的配置不用修改 syncEnabled=1 # which cores
-