我正在 Azure 上开发 Sitecore PaaS 解决方案。我使用标准市场程序提供了一个 Sitecore xsmall 实例。安装后我立即进行了完整的索引重建。但是当 Sitecore 开始重建主数据库索引时,它会在添加随机数量的索引后卡住。
我尝试了多种不同的配置修改,但都没有奏效。
有什么想法吗?
[编辑]
好的,我找到了日志。
嵌套异常
Exception: Sitecore.ContentSearch.Azure.Http.Exceptions.AzureSearchServiceRESTCallException Message: {"error":{"code":"","message":"The request is invalid. Details: definition : Invalid index: The index contains 1036 field(s). An index can have at most 1000 fields.\r\n"}}
我看到有 Sitecore 8 的补丁,但我使用的是 v9。我仍然可以安装它吗?
最佳答案
在获得 Sitecore 的帮助后,这被认为是一个错误。引用编号 207507。
作为一种变通方法,我不得不手动将字段排除在索引之外:
- 在
App_Config/Include/Sitecore.ContentSearch.Azure/Sitecore.ContentSearch.Azure.DefaultIndexConfiguration.config
设置<indexAllFields>
至false
- 将要排除的字段添加到
App_Config/Include/Sitecore.ContentSearch.Azure/Sitecore.ContentSearch.Azure.Index.Master.ExcludeFields.config
关于indexing - Sitecore 9.1 Azure 主索引重建卡住,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49940421/