首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 其他教程 > 开源软件 >

solr4.4晋级

2013-08-13 
solr4.4升级在使用solr4.3的过程中,发现致命bug,在使用create core创建成功core后,config 、schema配置属性

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的信息,

core.properties :
#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中。

solr.xml格式换了 :
<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控制台,只能用 谷歌浏览器访问,其他浏览器不能正常访问,不知道为什么。

热点排行