我想从内容传送日志文件中删除master数据库的索引。我将SwitchMasterToWeb.config添加到app_config / include文件夹,但我仍然在我的日志文件中索引主数据库。
是否需要配置或我需要自定义一些Sitecore文件?
答案 0 :(得分:1)
您需要从内容传送服务器中删除master
索引以删除日志文件
在Sitecore 7.2解决方案中,在我的SwitchMasterToWeb.config文件中,我有以下补丁:
<?xml version="1.0" encoding="utf-8" ?>
<configuration xmlns:patch="http://www.sitecore.net/xmlconfig/" xmlns:set="http://www.sitecore.net/xmlconfig/set/">
<sitecore>
<search>
<configuration>
<indexes>
<index>
<locations>
<master>
<patch:delete />
</master>
</locations>
</index>
</indexes>
</configuration>
</search>
<contentSearch>
<indexUpdateStrategies>
<intervalAsyncCore type="Sitecore.ContentSearch.Maintenance.Strategies.IntervalAsynchronousStrategy, Sitecore.ContentSearch">
<patch:delete/>
</intervalAsyncCore>
<intervalAsyncMaster type="Sitecore.ContentSearch.Maintenance.Strategies.IntervalAsynchronousStrategy, Sitecore.ContentSearch">
<patch:delete/>
</intervalAsyncMaster>
<syncMaster type="Sitecore.ContentSearch.Maintenance.Strategies.SynchronousStrategy, Sitecore.ContentSearch">
<param desc="database">web</param>
</syncMaster>
</indexUpdateStrategies>
</contentSearch>
<!-- other patching configurations -->
</sitecore>
</configuration>
答案 1 :(得分:1)
我猜您在Content Delivery Server上的日志文件中看到了异常Message: Index sitecore_master_index was not found
。这是Sitecore的一个已知问题,您需要根据Sitecore Knowledge Base