solr定时实时重建索引和增量更新——sxt
2017-03-25 22:33
477 查看
定时实时重建索引和增量更新
Solr Data Import Handler Scheduler说明:
将
2.修改
3.将
4.重启tomcat或者jboss 即可
dataimport.properties配置项说明
上文出处:http://code.google.com/p/solr-dataimport-scheduler/
如果不是太懂,请看上一篇solr全量索引、增量索引、定时索引的文章。
修复bug,重新打包后的jar下载:
solr-dataimportscheduler-1.1
solr-dataimportscheduler-1.1-source
dataimport.properties.zip
dataimport.properties.zip解压到tomcat的solr.xml里配置的solr/home路径,里面含有conf文件夹及dataimport.properties。
原jar下载:
apache-solr-dataimportscheduler-1.0.jar
apache-solr-dataimportscheduler-1.0-with-source.jar
Solr Data Import Handler Scheduler说明:
将
apache-solr-dataimportscheduler-1.0.jar和solr自带的
apache-solr-dataimporthandler-.jar,
apache-solr-dataimporthandler-extras-.jar放到
solr.war的
lib目录下面
2.修改
solr.war中
WEB-INF/web.xml, 在
servlet节点前面增加:
<listener> <listener-class> org.apache.solr.handler.dataimport.scheduler.ApplicationListener </listener-class> </listener>
3.将
apache-solr-dataimportscheduler-.jar中
dataimport.properties取出并根据实际情况修改,然后放到
solr.home/conf (不是solr.home/core/conf)目录下面
4.重启tomcat或者jboss 即可
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=core1,core2 # 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 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 # 重做索引的时间间隔,单位分钟,默认7200,即5天; # 为空,为0,或者注释掉:表示永不重做索引 reBuildIndexInterval=7200 # 重做索引的参数 reBuildIndexParams=/dataimport?command=full-import&clean=true&commit=true # 重做索引时间间隔的计时开始时间,第一次真正执行的时间=reBuildIndexBeginTime+reBuildIndexInterval*60*1000; # 两种格式:2012-04-11 03:10:00 或者 03:10:00,后一种会自动补全日期部分为服务启动时的日期 reBuildIndexBeginTime=03:10:00
上文出处:http://code.google.com/p/solr-dataimport-scheduler/
如果不是太懂,请看上一篇solr全量索引、增量索引、定时索引的文章。
修复bug,重新打包后的jar下载:
solr-dataimportscheduler-1.1
solr-dataimportscheduler-1.1-source
dataimport.properties.zip
dataimport.properties.zip解压到tomcat的solr.xml里配置的solr/home路径,里面含有conf文件夹及dataimport.properties。
原jar下载:
apache-solr-dataimportscheduler-1.0.jar
apache-solr-dataimportscheduler-1.0-with-source.jar
相关文章推荐
- 【修改的版本】solr定时实时重建索引和增量更新
- solr4.7.1定时实时重建索引和增量更新
- solr6.6定时实时重建索引和增量更新
- solr定时实时重建索引和增量更新
- solr定时实时重建索引和增量更新
- solr定时实时重建索引和增量更新
- solr定时实时重建索引和增量更新
- (solr系列:五) solr定时实时重建索引和增量更新
- solr定时实时重建索引和增量更新
- solr定时实时重建索引和增量更新
- solr6.0 -MySQL定时增量、全量更新索引
- Solr 4.x定时、实时增量索引 - 修改、删除和新增索引
- Solr 4.x定时、实时增量索引 - 修改、删除和新增索引
- sphinx增量索引和主索引来实现索引的实时更新
- solr定时增量索引
- solr定时增量索引
- Solr定时增量更新
- sphinx多个索引源的源使用和增量索引和主索引来实现索引的实时更新
- sphinx 增量索引 实现近实时更新
- coreseek实时索引更新之增量索引