Missing fields in search results after upgrade to 5.0.1460.0
Missing fields in search results after upgrade to 5.0.1460.0
|
|
Introduced in
This issue was introduced in the October 22, 2025 release of Coveo for Sitecore version 5.0.1460.0. |
Symptoms
After upgrading to the October 22, 2025 release of Coveo for Sitecore, fields are missing in your search results.
Cause
CFSC 5.0.1460.0 comes bundled with Coveo JavaScript Search Framework version (2.10123.0) that pre-populates the fieldsToInclude property with a minimal default list.
To offset this change, the Coveo Hive CoveoForSitecoreExpressions component’s onBuildingQuery event handler now clears the fieldsToInclude property.
However, custom search interfaces that don’t include the CoveoForSitecoreExpressions component or that have a custom onBuildingQuery event handler might not be clearing the fieldsToInclude property.
Resolution
Use one of these solutions:
-
Add the CoveoForSitecoreExpressions component to your search interface if it’s not already present. This component clears the
fieldsToIncludeproperty to include all fields.The component markup is:
<div class="CoveoForSitecoreExpressions"></div>For the correct component placement, see the
<SITECORE_INSTANCE_ROOT>\Views\Coveo Hive\Search Interfaces\Coveo Search Interface.cshtmlview file.... <div class="coveo-search-interface-mandatory-section"> @if (Html.Coveo().IsEditingInPageEditor()) { <div>Mandatory components (Edit the Search Interface properties to configure them)</div> } <div class="coveo-search-interface-mandatory-components"> <div class="CoveoValidateAnalyticsIncluded" data-component-name="Search Interface"></div> <div class="CoveoForSitecoreExpressions"></div> ... -
Clear the
fieldsToIncludeproperty in your customonBuildingQueryevent handler.For an implementation example, see the
onBuildingQueryevent handler in<SITECORE_INSTANCE_ROOT>\Coveo\Hive\js\CoveoForSitecoreExpressions.js.... CoveoForSitecoreExpressions.prototype.onBuildingQuery = function (buildingQueryArgs, contextArgs) { buildingQueryArgs.queryBuilder.fieldsToInclude = null; ...