Gravatar for

Question by wvuong, Apr 28, 2016 2:31 PM

Indexed Item does not contain sitecore field

I recently upgraded from Coveo for Sitecore 3 to Coveo for Sitecore 4 Cloud Edition. I have converted my configuration files including the custom configured fields i created. In the Cloud Administration console i can see the configured fields I created.

I have a sitecore template with a field titled "image" of sitecore type image and i see a corresponding field for this in the fields page. But for the corresponding content item in the content browser of the admin console I don't see this field.

It should be default be indexing all fields of sitecore templates that have values right?

1 Reply
Gravatar for

Answer by Dominic Berube, Apr 29, 2016 1:12 PM

Hi wvuong,

Your 'image' field is not indexed because it has the same name as one of the excludedFields of the Lucene's list which we reference for our indexes.

There are 2 workarounds available:

  1. Change the name of your field for something else (i.e. imageUrl) and set the 'Title' of this field to 'image' or whatever you want.
  2. In the Coveo.SearchProvider.config file, search for the element <exclude hint="list:ExcludeField" ref="contentSearch/indexConfigurations/defaultLuceneIndexConfiguration//exclude[@hint='list:ExcludeField']" factory="remoteListFactory" /> in coveo/defaultIndexConfiguration. This is where we reference the Lucene list of excluded fields. You can remove the ref and factory attributes and directly copy the list of excluded fields from the Sitecore.ContentSearch.Lucene.DefaultIndexConfiguration.config file there. Then remove the 'Image' element from the copied list.


Gravatar for

Comment by wvuong, May 3, 2016 4:41 PM

list:ExcludeField is supposed to be list:AddExcludedField. I was able to resolve my issue with this. Thanks.

Gravatar for

Comment by Jean-François L'Heureux, May 3, 2016 5:32 PM

It depends of the Sitecore version in fact. In Sitecore 8.0 and lower it is list:ExcludeField while in Sitecore 8.1 and up it is list:AddExcludedField. Since you didn't mention your Sitecore version, @dberube used the variant with the wider support.

Ask a question