solr4.4升级

在使用solr4.3的过程中,发现致命bug,在使用create core创建成功core后,config 、schema配置属性没有保存到solr。xml 中,导致重启后,core无法引用正确的solrconfig.xml 和 schema.xml.


solr升级到4.4版本后,此问题修改,solr4.4在每个collection/core的目录下添加了一个 core.properties 配置文件,用来保存core的信息,

[color=red][b]core.properties :[/b][/color]
#Fri Aug 09 00:20:39 CST 2013
name=T_RK_GNLK_201209_2_gxga_db_1
config=T_RK_GNLK_201209_2_gxga_db_1-solrconfig.xml
transient=false
schema=T_RK_GNLK_201209_2_gxga_db_1-schema.xml
loadOnStartup=true
collection=T_RK_GNLK_201209_2_gxga_db_1
coreNodeName=core_node1
dataDir=data
shard=shard1

不在像以前,保存在solr.xml中。

[color=red][b]solr.xml[/b][/color]格式换了 :
<solr>

<solrcloud>
<str name="host">${host:}</str>
<int name="hostPort">8001</int>
<str name="hostContext">${hostContext:solr}</str>
<int name="zkClientTimeout">${zkClientTimeout:15000}</int>
<bool name="genericCoreNodeNames">${genericCoreNodeNames:true}</bool>
</solrcloud>

<shardHandlerFactory name="shardHandlerFactory"
class="HttpShardHandlerFactory">
<int name="socketTimeout">${socketTimeout:0}</int>
<int name="connTimeout">${connTimeout:0}</int>
</shardHandlerFactory>

</solr>

页面功能添加导入文件功能,还没试。

但是有个疑问,solr控制台,只能用 谷歌浏览器访问,其他浏览器不能正常访问,不知道为什么。
  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值