Gravatar for loebrandy@gmail.com

Question by rloeb, Apr 6, 2016 12:10 AM

Indexing sitecore core database and rabbit queuing?

I have built an index on a section of sitecore core database, /sitecore/content/mystuff and it built fine, and rebuilds fine from the manual sitecore index config page.

However, when I edit an item the change does not propagate to the index via rabbit. Not only that, changes to master/web stop propagating unless I recycle IIS and rabbit after changing something in core. What could be going wrong?

1 Reply
Gravatar for sbelzile@coveo.com

Answer by Sébastien Belzile, Apr 6, 2016 7:22 AM

Usually, indexing strategies are responsible for propagating item change. A synchronous strategy like the one defined by default in the Master index will index your items when you save them.

So indexing strategy is what you should begin to look at.

Could you share your index configuration here?

Gravatar for loebrandy@gmail.com

Comment by rloeb, Apr 6, 2016 11:02 AM

Here's the index configuration:

    <indexes hint="list:AddIndex">
      <index id="Coveo_master_index" type="Coveo.SearchProvider.ProviderIndex, Coveo.SearchProvider">
        <param desc="p_Name">$(id)</param>
        <locations hint="list:AddCrawler">
          <crawler type="Coveo.SearchProvider.CoveoItemCrawler, Coveo.SearchProviderBase">
            <Database>master</Database>
            <Root>/sitecore</Root>
            <StopOnError>true</StopOnError>
          </crawler>
        </locations>
        <strategies hint="list:AddStrategy">
          <strategy type="Sitecore.ContentSearch.Maintenance.Strategies.SynchronousStrategy, Sitecore.ContentSearch">
            <param desc="database">master</param>
          </strategy>
        </strategies>
        <propertyStore type="Sitecore.ContentSearch.Maintenance.IndexDatabasePropertyStore, Sitecore.ContentSearch">
          <Key>$(id)</Key>
          <Database>core</Database>
        </propertyStore>
      </index>
      <index id="Coveo_web_index" type="Coveo.SearchProvider.ProviderIndex, Coveo.SearchProvider">
        <param desc="p_Name">$(id)</param>
        <locations hint="list:AddCrawler">
          <crawler type="Coveo.SearchProvider.CoveoItemCrawler, Coveo.SearchProviderBase">
            <Database>web</Database>
            <Root>/sitecore</Root>
            <StopOnError>true</StopOnError>
          </crawler>
        </locations>
        <strategies hint="list:AddStrategy">
          <strategy type="Sitecore.ContentSearch.Maintenance.Strategies.OnPublishEndAsynchronousStrategy, Sitecore.ContentSearch">
            <param desc="database">web</param>
            <CheckForThreshold>true</CheckForThreshold>
          </strategy>
        </strategies>
        <propertyStore type="Sitecore.ContentSearch.Maintenance.IndexDatabasePropertyStore, Sitecore.ContentSearch">
          <Key>$(id)</Key>
          <Database>core</Database>
        </propertyStore>
      </index>
      <index id="Coveo_core_index" type="Coveo.SearchProvider.ProviderIndex, Coveo.SearchProvider">
        <param desc="p_Name">$(id)</param>
        <locations hint="list:AddCrawler">
          <crawler type="Coveo.SearchProvider.CoveoItemCrawler, Coveo.SearchProviderBase">
            <Database>core</Database>
            <Root>/sitecore/content/Users</Root>
            <StopOnError>true</StopOnError>
          </crawler>
        </locations>
        <strategies hint="list:AddStrategy">
          <strategy type="Sitecore.ContentSearch.Maintenance.Strategies.OnPublishEndAsynchronousStrategy, Sitecore.ContentSearch">
            <param desc="database">core</param>
            <CheckForThreshold>true</CheckForThreshold>
          </strategy>
        </strategies>
        <propertyStore type="Sitecore.ContentSearch.Maintenance.IndexDatabasePropertyStore, Sitecore.ContentSearch">
          <Key>$(id)</Key>
          <Database>core</Database>
        </propertyStore>
      </index>
    </indexes>
Gravatar for loebrandy@gmail.com

Comment by rloeb, Apr 6, 2016 11:03 AM

sorry for the bad formatting…let me know if it is decipherable, thanks.

Gravatar for loebrandy@gmail.com

Comment by rloeb, Apr 6, 2016 11:21 AM

I see you were probably right, I am changing the strategy now…..wish me luck ;-)

Gravatar for loebrandy@gmail.com

Comment by rloeb, Apr 6, 2016 11:32 AM

It works! thanks for your help!

Ask a question