Gravatar for paldrich@ascedia.com

Question by Paul Aldrich, Mar 17, 2017 7:17 PM

[Training] Computed fields not showing up in index browser

I am going through the Coveo for Sitecore 3.0 Developer Training slides (https://drive.google.com/file/d/0B9lvleav7PkmaWpZSzZ2MXJJdGs/view) in preparation for the Coveo exam. I am following along with the Launch Sitecore tutorial. On slide 161, it requires you to add a computed field to the config, which I have done, and I have rebuilt the master index. However, I do not see the iconAlt or iconUrl computed fields in the Index Browser. I only see the main icon field and an icon field in the Appearance field section.

I saw this question and Jeff's answer. My XML seems valid and the computed field entries show up in the ShowConfig page. No errors in the Sitecore logs when I rebuild the master index, and an item that has the icon field is showing as last indexed today, so I'm not sure what the issue is.

Below is the contents of the Coveo.Training.LaunchSitecore.config file. Anything else I can try?

<configuration xmlns:patch="http://www.sitecore.net/xmlconfig/">
    <sitecore>
        <pipelines>
            <coveoInboundFilterPipeline>
                <!-- Uncomment this to filter out items that are not of the latest version. -->
                <processor type="Coveo.Training.LaunchSitecore.InboundFilters.IndexLatestVersionInboundFilter, Coveo.Training.LaunchSitecore" />
                <!-- Uncomment this to use an inbound filter on item paths. By default, it will only index items in  /sitecore/content. You can specify multiple paths by separating them with a semi-colon. -->
                <processor type="Coveo.Training.LaunchSitecore.InboundFilters.ItemPathInboundFilter, Coveo.Training.LaunchSitecore">
                    <ContentStartPaths>/sitecore/content</ContentStartPaths>
                </processor>
            </coveoInboundFilterPipeline>
        </pipelines>
        <coveo>
            <defaultIndexConfiguration>
                <fields hint="raw:AddComputedIndexField">
                    <field fieldName="iconUrl"  sourceField="Icon">Coveo.SearchProvider.ComputedFields.ImageUrlComputedField, Coveo.SearchProviderBase</field>
                    <field fieldName="iconAlt"  sourceField="Icon">Coveo.SearchProvider.ComputedFields.ImageAltComputedField, Coveo.SearchProviderBase</field>
                </fields>
                <excludeTemplate hint="list:ExcludeTemplate">
                    <ConfigurationFolder>{045377D9-C7B7-4C51-A1F8-722502885239}</ConfigurationFolder>
                    <PresentationSettings>{C7294FF3-D0A5-4FD8-BD46-CD3A99EF6ED6}</PresentationSettings>
                    <SiteSettings>{41E5285E-F5B2-4075-95CE-D3A993881C81}</SiteSettings>
                    <VersionInformation>{8901041F-21F5-4A5B-BE87-ABBEF0DBE41C}</VersionInformation>
                    <FooterLinksSection>{21E0102F-DDBC-4DA9-B9E6-32B78DD4B7A5}</FooterLinksSection>
                </excludeTemplate>
                <rankingIgnoredFields hint="raw:AddRankingIgnoredField">
                    <field fieldName="show in search results" />
                </rankingIgnoredFields>
            </defaultIndexConfiguration>
        </coveo>
    </sitecore>
</configuration>
Gravatar for jflheureux@coveo.com

Comment by Jean-François L'Heureux, Mar 17, 2017 7:31 PM

Do you find those fields in the field set of your master source in CES? If not, it means the configuration synchronization between Coveo for Sitecore and CES have not occurred.

0 Reply
Ask a question