3

I have a Sitecore 9.0.1 instance running in Azure and uses Azure Search. My search index is working as far as I know and can be rebuilt.

Earlier this week, I hit the problem with Sitecore Azure search service index limitation : 1000 fields per index and updated my Sitecore.ContentSearch.Azure.Index.Master.config to target specific item paths instead of /sitecore.

Here's how it looks like:

<locations hint="list:AddCrawler">
  <crawler type="Sitecore.ContentSearch.SitecoreItemCrawler, Sitecore.ContentSearch">
    <Database>master</Database>
    <Root>/sitecore/content/Government/SITE1</Root>
  </crawler>
  <crawler type="Sitecore.ContentSearch.SitecoreItemCrawler, Sitecore.ContentSearch">
    <Database>master</Database>
    <Root>/sitecore/media library/Project/Government/SITE1</Root>
  </crawler>
  <crawler type="Sitecore.ContentSearch.SitecoreItemCrawler, Sitecore.ContentSearch">
    <Database>master</Database>
    <Root>/sitecore/templates/Project/Government/SITE1</Root>
  </crawler>
  <crawler type="Sitecore.ContentSearch.SitecoreItemCrawler, Sitecore.ContentSearch">
    <Database>master</Database>
    <Root>/sitecore/templates/Web Forms for Marketers</Root>
  </crawler>
</locations>

enter image description here

But looking at the sitecore logs, sitecore expects that I include /sitecore into my index crawler. However, my dilemma is that when I did include /sitecore into my crawler then I will re-introduce with 1000 fields per index limitation issue again.

At the very least, I am trying to avoid excluding fields one by one.

. .

Update 1:

I noticed that my content search functionality inside the Sitecore content editor is returning no result. By checking the log files, it returns the 'There is no appropriate index for /sitecore - {11111111-1111-1111-1111-111111111111} issue again. enter image description here.

So I undo all the crawlers that I added and started to exclude templates one by one. I am making progress, but this will take a while for me to exclude all templates - including systems and settings templates.

Any other workarounds? Any ideas?

1 Answer 1

3

To include the sitecore root (/sitecore), enable the AddIncludeTemlate in Sitecore.ContentSearch.Azure.DefaultIndexConfiguration.config and add the root template.

<include hint="list:AddIncludedTemplate">
  <root>{C6576836-910C-4A3D-BA03-C277DBD3B827}</root>
</include>

Your logs should show something like this now:

enter image description here

This one will work only if you do not search directly from the content editor. See my Update 1 above.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.