Gravatar for mahanthesha.biradara@kochtc.com

Question by Mahanthesha, Feb 4, 2019 11:58 AM

Could not find add method: IncludeTemplate (type: Coveo.AbstractLayer.CoveoDefaultIndexConfiguration)

Hi,

We have recently upgraded our Sitecore from 8.0 to 9.0.2 and installed Coveo 4.1 on Sitecore 9.0.2 version. Receiving below errors when we add 'include' tags.

1. Could not find add method: IncludeTemplate (type: Coveo.AbstractLayer.CoveoDefaultIndexConfiguration)

2. Could not find add method: AddComputedIndexField(type: Coveo.AbstractLayer.CoveoDefaultIndexConfiguration)

Please let me know if additional details required.

Thanks,

Mahantesh

1 Reply
Gravatar for flguillemette@coveo.com

Answer by François Lachance-Guillemette, Feb 4, 2019 1:49 PM

I have opened both Sitecore 8.0 and 9.0.2 and diff-ed them.

I suspect that you still have old 8.0 files that have not been upgraded.

Here are some differences that I found between versions that explain both of your errors:

  • Both are now located under a `documentOptions type="Sitecore.ContentSearch.DocumentBuilderOptions, Sitecore.ContentSearch"` node that did not exist in Sitecore 8.0
  • `exclude hint="list:ExcludeTemplate"` has been changed to `"exclude hint="list:AddExcludedTemplate"`. The same happens for the following:
    • `list:ExcludeField` => `list:AddExcludedField`
    • `list:IncludeField` => `list:AddIncludedField`

I would suggest comparing both configuration files and applying the changes required from Sitecore 8.0 to 9.0.

Gravatar for mahanthesha.biradara@kochtc.com

Comment by Mahanthesha, Feb 5, 2019 8:41 AM

I had removed all Sitecore 8.0's Coveo related files before installing fresh Coveo 4.1 package (Coveo+for+Sitecore+90+5.0.140.19.zip) then applied custom Coveo configs(project related).

Example - Custom configs related to Coveo has below sections

<include hint="list:IncludeTemplate">

...

...

</include>

&

<fields hint="raw:AddComputedIndexField">

.....

....

</fields>

my another doubt area is we have Solr related files also, is that the reason for this issue?

Gravatar for mahanthesha.biradara@kochtc.com

Comment by Mahanthesha, Feb 7, 2019 8:33 AM

Thanks @François Lachance-Guillemette and @Jean-François L'Heureux for your guidance. I'm able to correct the custom configs based on your inputs.

Ask a question