This is the first time we working on Azure Search and Sitecore SXA
we are facing a problem related to
Exception: Sitecore.ContentSearch.Azure.Http.Exceptions.AzureSearchServiceRESTCallException Message: {"error":{"code":"","message":"The request is invalid. Details: definition : Invalid index: The index contains 1076 leaf fields (fields of a non-complex type). An index can have at most 1000 leaf fields.\r\n"}}
How do i check on which index am getting this error?
After reading about it i understand there are 2 ways to solve this issue
- Set indexAllFields to false and include only necessary fields to the index
- Use the Exclude fields config file to exclude unnecessary fields
Being a SXA and Azure Search Newbie i seem to have lost my way , please find my questions below
- how can i check which index has crossed the maximum field limit on the azure portal
- I also see two indexes per database on the Azure Search explorer being created one for each database sitecore-core-index and sitecore-core-index-secondary , sitecore-master-index and sitecore-master-index-secondary , sitecore-web-index and sitecore-web-index-secondary , what are these secondary indexes
- There are also 2 other indexes related to SXA sitecore-sxa-master-secondary and sitecore-sxa-web-secondary , what are these indexes? ,I read that Sitecore SXA 1.7 onwards allows to configure index per site, i am yet to configure Index per site on SXA , yet i see these two indexes on Azure portal, am i missing anything?
- where are my content items indexed ? sitecore-sxa-master-secondary or sitecore-master-index ?
- would be great if anyone can provide a best practice guide on how to index content per site in SXA and include on items based on template type and exclude unwanted fields