如何用Solr搭建大数据查询平台

本例结合solr+mysql搭建一个比较高效的大数据量查询的平台,主要4部操作

1、安装配置solr 2、结合mysql某些表配置solr 3、建立solr core  4、导入mysql数据和java环境测试


具体步骤参考 :http://www.freebuf.com/articles/database/100423.html,作者有两个地方错误了,一个是

<fieldType name="text_ik" class="solr.TextField">
<analyzer type="index" useSmart="false" class="org.wltea.analyzer.lucene.IKAnalyzer"/>
<analyzer type="query" useSmart="true" class="org.wltea.analyzer.lucene.IKAnalyzer"/>
</fieldType>

这个定义应该是加入schema.xml中,不是solrconfig中;另外一个地方要修改一下,就是elevate.xml这个配置文件里的设置,修改 elevate.xml 里面的内容
<query text="ipod">
<doc id="MA147LL/A" /> <!– put the actual ipod at the top –>
<doc id="IW-02" exclude="true" /> <!– exclude this cable –>
</query>

<query text="ipod">
<doc id="1" /> <!– put the actual ipod at the top –>
<doc id="2" exclude="true" /> <!– exclude this cable –>
</query>


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值