_latestversion showing "1" for all versions of an item in the coveo_master_index for Sitecore
Creating a new version of an item successfully adds that version to the coveomasterindex. The older versions are not updated with _latestversion=0. They all remain as _latestversion=1. This results in duplicates appearing in results when using the coveomasterindex. One thing to make note of is the Indexed Date, as reported in the Coveo Cloud Content Browser, does not change for older versions of an item when a new version is saved. To me, this indicates that the older versions are not updated when a newer version is added to the index. I checked the sitecoremasterindex and it is updated correctly. Only one version in the sitecoremasterindex has _latestversion=1
I confirmed that the coveomasterindex has the coveoSyncMaster strategy.
- We are using the Coveo Pro Cloud edition.
- Current Coveo for Sitecore version: 4.0.895.0
- Current Sitecore version: 8.1.160519
I have seen this issue reported for the coveowebindex, but not for the coveomasterindex. The noted fixes for the coveowebindex, do not apply as the indexUpdateStrategies are different. I am ruling this out as Sitecore bug as the sitecoremasterindex is working just fine.
I have also confirmed that (@fz95xlatestversion52917=="1") is included in the query.
Note: using the Developer toolbar / Re-index Tree does NOT correct the _latestversion flags… Only the most recent version is updated in the index. The other versions are not updated. I am going to try to do a full index rebuild and will report back.