Gravatar for swamcts@gmail.com

Question by swamcts, Apr 14, 2017 12:54 PM

Incremental indexing not working in coveo for sitecore 4.0

when we publish or saveitem, its not reflecting in CES Index. Full rebuild is working.

We are using coveo for sitecore 4 with package 895.

When we publish, rabbitMQ also not getting any items, but its publishing successfully.Please let me know your comments

Gravatar for dberube@coveo.com

Comment by Dominic Berube, Apr 14, 2017 12:58 PM

Which indexing operations are affected, is it only for existing items or also for new items? There are known issues in Sitecore 8.1+ with the Language Fallback, could it be related?

Gravatar for swamcts@gmail.com

Comment by swamcts, Apr 14, 2017 1:14 PM

we are using ,

Current Coveo for Sitecore version: 4.0.895.0

Current Sitecore version: 7.2.140526.

Its impacting new items and when we update existing items.

Gravatar for dberube@coveo.com

Comment by Dominic Berube, Apr 14, 2017 1:35 PM

Can you validate that the strategies on master and web indexes are correctly set in the Coveo.SearchProvider.config file. Look at the <strategies> element of your indexes.

Master should be

<strategies hint="list:AddStrategy">
    <strategy ref="contentSearch/indexConfigurations/indexUpdateStrategies/coveoSyncMaster"/>
</strategies>

and the corresponding reference

<indexUpdateStrategies>
    <coveoSyncMaster name="CoveoSyncMaster" ref="contentSearch/indexConfigurations/indexUpdateStrategies/syncMaster" />
    <coveoOnPublishEndAsync name="CoveoOnPublishEndAsync" ref="contentSearch/indexConfigurations/indexUpdateStrategies/onPublishEndAsync" />
</indexUpdateStrategies>

Gravatar for swamcts@gmail.com

Comment by swamcts, Apr 14, 2017 2:39 PM

We are not indexing master, doing only coveo_web_index.

So out strategies looks like,

<strategies hint="list:AddStrategy">
    <strategy ref="contentSearch/indexUpdateStrategies/coveoOnPublishEndAsync"/>
    <strategy type="Sitecore.ContentSearch.Maintenance.Strategies.OnPublishEndAsynchronousStrategy, Sitecore.ContentSearch" patch:source="Coveo.SearchProvider.Patch.config">
        <param desc="database">web_as</param>
        <CheckForThreshold>true</CheckForThreshold>
    </strategy>
</strategies>

Thanks

Swami

Gravatar for dberube@coveo.com

Comment by Dominic Berube, Apr 14, 2017 2:53 PM

Your are missing the /indexConfigurations/ part in the first strategy, is it a typo?

Do your crawlers for your Coveo_web_index use the web_as database too?

What did you change that might have caused this (e.g. add a new database?), it was probably working before.

Gravatar for swamcts@gmail.com

Comment by swamcts, Apr 14, 2017 4:12 PM

By default, From installation, it look like below on Coveo.SearchProvider.config

 <strategy ref="contentSearch/indexUpdateStrategies/coveoOnPublishEndAsync"/>

Yes, Coveo_web_index use web_as only.

We recently restore the sitecore database from production to Stage, before its works fine.

Thanks

Swami

2 Replies
Gravatar for jflheureux@coveo.com

Answer by Jean-François L'Heureux, Apr 14, 2017 7:58 PM

If you are using a database name other than `master` or `web`, you cannot reference the default strategies. The reason is because those strategies are hardcoded by Sitecore to use the `master` and `web` databases. You have to define your own strategies:

For master:

<strategies hint="list:AddStrategy">
  <strategy type="Sitecore.ContentSearch.Maintenance.Strategies.SynchronousStrategy, Sitecore.ContentSearch">
    <param desc="database">YOUR_CUSTOM_DATABASE_NAME</param>
  </strategy>
</strategies>

For web:

<strategies hint="list:AddStrategy">
  <strategy type="Sitecore.ContentSearch.Maintenance.Strategies.OnPublishEndAsynchronousStrategy, Sitecore.ContentSearch">
    <param desc="database">YOURCUSTOMDATABASE_NAME</param>
    <CheckForThreshold>true</CheckForThreshold>
  </strategy>
</strategies>

Gravatar for swamcts@gmail.com

Answer by swamcts, Apr 18, 2017 3:40 PM

We have configured as you said, but still incremental index not working.

"Coveo_web_index"

<strategies hint="list:AddStrategy"> <strategy ref="contentSearch/indexUpdateStrategies/coveoOnPublishEndAsync"/>

"); vertical-align: bottom; height: 10px;"><strategy type="Sitecore.ContentSearch.Maintenance.Strategies.OnPublishEndAsynchronousStrategy, Sitecore.ContentSearch" patch:source="Coveo.SearchProvider.Patch.config"> <param desc="database">web_as</param> "); vertical-align: bottom; height: 10px;"><!--

            Whether or not a full index rebuild should be triggered when the number of items in the EventQueue exceeds the number specified
             in ContentSearch.FullRebuildItemCountThreshold.

--> <CheckForThreshold>true</CheckForThreshold> </strategy>

</strategies>

On addition to this, we have one more config, please confirm the below configuration is correct or not.

<onPublishEndAsync type="Sitecore.ContentSearch.Maintenance.Strategies.OnPublishEndAsynchronousStrategy, Sitecore.ContentSearch"> <param desc="database">web_as</param>

"); vertical-align: bottom; height: 10px;"><!-- Whether or not a full index rebuild should be triggered when the number of items in the EventQueue exceeds the number specified in ContentSearch.FullRebuildItemCountThreshold. --> <CheckForThreshold>true</CheckForThreshold>

</onPublishEndAsync>

Shall i use "web" or "web_as" here ?

Ask a question