Hello Sitecore people. I am trying to add 2 crawlers for a custom index. Is this possible?

Hello Sitecore people. I am trying to add 2 crawlers for a custom index.
 

<locations hint="list:AddCrawler">
              <crawler type="Sitecore.ContentSearch.SitecoreItemCrawler, Sitecore.ContentSearch">
                <Database>web</Database>
                <Root>/sitecore/Content/Home</Root>
              </crawler>

<crawler type="Sitecore.ContentSearch.SitecoreItemCrawler, Sitecore.ContentSearch">
                <Database>web</Database>
                <Root>/sitecore/Content/Home2</Root>
              </crawler>
            </locations>

Kind Regards,

Vio

  • Yes, it is possible.

    But in that case you should not name your node "crawler" but something more meaningful like:

    <locations hint="list:AddCrawler">
      <homeCrawler type="Sitecore.ContentSearch.SitecoreItemCrawler, Sitecore.ContentSearch">
        <Database>web</Database>
        <Root>/sitecore/Content/Home</Root>
      </homeCrawler>
      <home2Crawler type="Sitecore.ContentSearch.SitecoreItemCrawler, Sitecore.ContentSearch">
        <Database>web</Database>
        <Root>/sitecore/Content/Home2</Root>
      </home2Crawler>
    </locations>

    That should work..