在我描述我的问题之前,我想描述一下我的架构以及我的计划。
我在6台名为hybris01-hybris06的虚拟机上安装了6台Hybris服务器。 它们都是聚集的,可以互相看到。 我按照这些说明操作:
https://wiki.hybris.com/display/release5/SolrFacetSearch+-+Installation+Guide并进行了以下设置:
我去了hybris/bin/ext-commerce/solrfacetsearch/resources/solr/server/
并配置了solr.xml和conf / solrconfig.xml。
特别是在最后一个我添加了这些行:
<solrconfig>
<mode>standalone</mode>
</solrconfig>
<clusterconfig>
<aliveCheckInterval>5000</aliveCheckInterval>
<connectionTimeout>5000</connectionTimeout>
<readTimeout>5000</readTimeout>
<endpointURLs>
<endpointURL master="true">hybris05:8983/solr</endpointURL>
<endpointURL>hybris06:8983/solr</endpointURL>
</endpointURLs>
</clusterconfig>
我还将其写入local.properties:
solr.server.env=prod
solr.server.mode=standalone
solr.server.endpointURL=hybris05:8983/solr // and 06 on the other Server
但我看到的是“使用系统属性solr.solr.home:/ opt / hybris / config / solr / embedded”
现在我不确定每个Hybris实例是使用嵌入式还是独立式。
我怎样才能找到这个?
Greetings Fide
答案 0 :(得分:4)
你需要明确告诉Hybris使用你的独立Solr集群,这样你需要去HMC:
系统 - &gt;方面搜索 - &gt;方面搜索配置 - &gt;服装指数 (例子) - &gt; Solr配置 - &gt;编辑激活的Solr服务器 构造
您需要在此声明群集的每个成员,您可以编写一个impex查询来插入此配置。不要忘记,当您拥有专用的Solr主站时,索引器模式可以是直接(更快),而不会出现任何前端索引中断。
答案 1 :(得分:2)
您的错误是使用XML配置,无法在运行时更新。使用自4.5以来可用的基于项目的配置(或者当Klaus添加它时环形交叉口。)
关于它是独立运行还是嵌入运行的问题,请查看http://localhost:9001/solrfacetsearch/
如果嵌入了数据,您的数据就会存在。
答案 2 :(得分:0)
谢谢 维奈