上一页 1 ··· 63 64 65 66 67
摘要: 一、问题描述:Solr在建立索引时候出现如下错误:org.apache.solr.common.SolrException: Document [null] missing required field: id原因:主要是因为Solr 的solrconfig配置文件中定义了id,默认了ID 是唯一的... 阅读全文
posted @ 2014-03-13 16:53 风过无痕521 阅读(360) 评论(0) 推荐(0) 编辑
摘要: Solr学习笔记之4、Solr配置文件简介摘自《Solr in Action》。1、 solr.xml – Defines one or more cores per Solr server2、 solrconfig.xml – Defines the main settings for a specific Solr core3、 schema.xml – Defines the structure of your index including fields and field types翻译如下:1、solr.xml – 定义某个SolrServer的一个或者多个Core2、solrco 阅读全文
posted @ 2014-03-13 15:02 风过无痕521 阅读(553) 评论(0) 推荐(0) 编辑
摘要: Solr学习笔记之3、Solr导入SQLServer数据建立索引一、下载MSSQLServer的JDBC驱动下载:Microsoft JDBC Driver 4.0 for SQL Server地址:http://www.microsoft.com/zh-CN/download/details.aspx?displaylang=en&id=11774二、配置Solr dataimport for SQLServer1、依赖jar包配置将MSSQLServer的JDBC驱动中的sqljdbc4.jar复制到\tomcat\webapps\solr\WEB-INF\lib文件夹中。将sol 阅读全文
posted @ 2014-03-13 13:58 风过无痕521 阅读(5266) 评论(1) 推荐(0) 编辑
摘要: Solr学习笔记之2、集成IK中文分词器一、下载IK中文分词器IK中文分词器此文IK版本:IK Analyer 2012-FF hotfix 1 完整分发包二、在Solr中集成IK中文分词器1、将 IKAnalyzer.cfg.xml,IKAnalyzer2012FF_u1.jar,stopword.dic 拷贝到tomcat的/webapps/solr/WEB-INF/lib/下面2、选择某一Solr的core配置IK分词,打开coreName/conf/schema.xml,在节点中加入以下配置: 3、重启tomcat,在solr管理中打开对应的co... 阅读全文
posted @ 2014-03-13 13:54 风过无痕521 阅读(400) 评论(0) 推荐(0) 编辑
摘要: Solr学习笔记之1、环境搭建 一、下载相关安装包 1、JDK 2、Tomcat 3、Solr 此文所用软件包版本如下: 操作系统:Win7 64位 JDK:jdk-7u25-windows-i586.exe Tomcat:apache-tomcat-8.0.3.exe Solr:solr-4.7. 阅读全文
posted @ 2014-03-12 17:48 风过无痕521 阅读(864) 评论(0) 推荐(0) 编辑
上一页 1 ··· 63 64 65 66 67