在使用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控制台,只能用 谷歌浏览器访问,其他浏览器不能正常访问,不知道为什么。
solr4.4升级
猜你喜欢
转载自rock-soft.iteye.com/blog/1922324
今日推荐
周排行