Solr5.2.1搜索服务部署——增量索引
2015-06-26 00:00
323 查看
目录
[b]tomcat安装 [/b]
solr安装
整合mmseg4j2.3.0
[b]关联mysql [/b]
[b]增量索引 [/b]
[b]检索多字段 [/b]
Solr会记录最后一次做增量索引的时间(dih.last_index_time),类型为datetime
在全量索引(query)后添加deltaImportQuery和deltaQuery属性
通过地址访问http://localhost:8983/solr/core0/dataimport?command=delta-import&wt=json&clean=false
[b]tomcat安装 [/b]
solr安装
整合mmseg4j2.3.0
[b]关联mysql [/b]
[b]增量索引 [/b]
[b]检索多字段 [/b]
Solr会记录最后一次做增量索引的时间(dih.last_index_time),类型为datetime
在全量索引(query)后添加deltaImportQuery和deltaQuery属性
# vim /usr/local/solr/server/solr/core0/conf/data-config.xml <?xml version="1.0" encoding="UTF-8"?> <dataConfig> <document> <entity name="Article" pk="aid" query="SELECT * FROM itcrm_article" deltaImportQuery="SELECT * FROM itcrm_article WHERE aid = '${dih.delta.aid}'” deltaQuery="SELECT aid FROM itcrm_article WHERE FROM_UNIXTIME(ctime) > '${dih.last_index_time}' OR FROM_UNIXTIME(mtime) > '${dih.last_index_time}'"> <field name="aid" column="aid" /> …… </entity> </document> </dataConfig>
通过地址访问http://localhost:8983/solr/core0/dataimport?command=delta-import&wt=json&clean=false
相关文章推荐
- 在Eclipse中运行Solr 基础知识
- Solr基础--设置solr/home的三种方式
- Docker使用supervisor构建solr
- solr4.0安装和简单导入mysql数据
- Solr 4.0 基础教程
- 自译Solr in action中文版
- Solr In Action 中文版 第一章(一)
- Solr In Action 中文版 第一章 (二)
- Solr In Action 中文版 第一章(三)
- 基于solr实现hbase的二级索引
- Tomcat/Solr4.3.1 配置过程
- Solr Facet技术的应用与研究
- Apache Solr查询语法
- Solr客户端删除数据的方式
- Centos 安装 Solr
- solr空间查询
- lucene solr在tomcat中的配置
- nutch1.4 部署应用
- 部署solr建立nutch索引
- Solr5.2.1搜索服务部署——检索多字段