I'm working on a Sitecore PaaS solution on Azure. I provision a Sitecore xsmall instance with the standard marketplace procedure. Right after installing I went for a complete index rebuild. But when Sitecore starts rebuilding master database indexes, it gets stuck after a random number of indexes are added.
I tried a number of different configuration modifications but none of them worked.
Any ideas?
[EDIT]
Ok, I found the logs.
Nested Exception
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"}}
I saw there's a patch for Sitecore 8 but I'm using v9. Can I install it anyways?
After getting help from Sitecore, this was recognized as a bug. Reference number 207507.
As a workaround I had to manually exclude fields from being indexed:
App_Config/Include/Sitecore.ContentSearch.Azure/Sitecore.ContentSearch.Azure.DefaultIndexConfiguration.config
set <indexAllFields>
to false
App_Config/Include/Sitecore.ContentSearch.Azure/Sitecore.ContentSearch.Azure.Index.Master.ExcludeFields.config