solr DIH 设置定时索引
1 web.xml中加入
web.xml所在目录 /opt/solr-7.7.1/server/solr-webapp/webapp/WEB-INF
<listener><listener-class>org.apache.solr.handler.dataimport.scheduler.ApplicationListener</listener-class>
</listener>
2 solr-7.7.1/server/solr/conf中新建dataimport.properties
conf文件夹需要自己新建
#Tue Jun 20 15:31:32 CST 2017#################################################
# #
# 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=coreHr,coreEn,journal,
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=8983# application name/context
# [defaults to current ServletContextListener's context (app) name]
webapp=solr# URL params [mandatory]
# remainder of URL
#params=/select?qt=/dataimport&command=delta-import&clean=false&commit=true
# 修改请求路径
params=/dataimport?command=delta-import&clean=false&commit=true# schedule interval
# number of minutes between two runs
# [defaults to 30 if empty]
interval=10
3 引入dihs.jar包
/sagesolr/solr-7.2.1/server/solr-webapp/webapp/WEB-INF/lib
4 配置增量索引SQL
转载于:https://www.cnblogs.com/miye/p/9618999.html
solr DIH 设置定时索引相关推荐
- Solr DIH上传索引操作实例
1.1. 软件参数 Mysql 5.5以上,Solr服务 1.2. 创建对应mysql表 集团company表结构: CREATE TABLE `company` ( `id` varchar(2 ...
- 基于Solr DIH实现MySQL表数据全量索引和增量索引
实现MySQL表数据全量索引和增量索引,基于Solr DIH组件实现起来比较简单,只需要重复使用Solr的DIH(Data Import Handler)组件,对data-config.xml进行简单 ...
- solr mysql 增量索引_基于Solr DIH实现MySQL表数据全量索引和增量索引
实现MySQL表数据全量索引和增量索引,基于Solr DIH组件实现起来比较简单,只需要重复使用Solr的DIH(Data Import Handler)组件,对data-config.xml进行简单 ...
- 数据索引---Solr DIH
Solr DIH就是Data Import Handler.由于很多时候我们的数据在数据库里面,需要将数据库里面的数据导出进行索引.Solr提供了一个很方便的接口来从数据库生成索引.DIH支持从单表和 ...
- [搜索] Solr (三) 全量索引与增量索引
solr.home D:solr\home solr.war D:solr\server\solr 参考文档 IBM developerWorks 文档库 Apache Solr 的新特性 ...
- 使用solr构建hbase二级索引
使用solr构建hbase二级索引 @(HBASE)[hbase, solr] 使用solr构建hbase二级索引 一概述 一业务场景描述 二技术方案 1技术方案一 2技术方案二 3关于索引的建议 二 ...
- solr mysql 导入命令_Solr 07 - Solr从MySQL数据库中导入数据 (Solr DIH的使用示例)
1 加入数据导入处理器的jar包 复制Solr解压后dist目录中的:solr-dataimporthandler-4.10.4.jar; 粘贴到contrib/dataimporthandler/l ...
- oracle导入solr,从Oracle数据库导入XML数据时solr dih会变慢
我正在执行一个solr-dih(dataimporthandler)任务,导入存储在Oracle数据库中的大约2000万个文档.最初,这些进口每秒将增加到500多个文档,但在前150000个文档中,速 ...
- 基于Solr的Hbase二级索引
关于Hbase二级索引 HBase 是一个列存数据库,每行数据只有一个主键RowKey,无法依据指定列的数据进行检索.查询时需要通过RowKey进行检索,然后查看指定列的数据是什么,效率低下.在实际应 ...
最新文章
- 漫画:有趣的海盗问题 (完整版)
- 事件源event.target
- pythonwhile列表_Python编程:while循环处理列表和字典
- mysql-5.7 innodb 的并行任务调度详解
- Python-OpenCV 处理图像(六):对象识别
- python刷leetcode_零基础python刷leetcode -- 3. Longest Substring Without Repeating Characters
- h5首页加载慢_H5网站制作注意了
- python对象模型映射_【500 Lines or Less】-【翻译练习】-【chapter 14】-【简单对象模型】-【第一部分】...
- leetcode770. Basic Calculator IV
- C语言博客作业08,C语言I博客作业08
- java 网络序_JAVA 网络程序
- hadoop mapper从源码开始 详解
- 远程桌面管理工具Remote Desktop Connection Manager 2.2
- 小米路由pro php,小米路由器开启frp
- x+=x-=x*x; 和 x-=x*x; x+=x;
- 计算机上64位数和32位数,cad中32位和64位的区别是什么?
- Retrofit 原理篇
- 杰理之AUX/LINEIN 设计注意【篇】
- 搭建Web环境初识JSP
- 基于下界函数的最优化