Gravatar for jaroslav.kramer@cegeka.be

Question by jkramer, Nov 5, 2015 8:07 AM

Could not find add method: IncludeTemplate

Hello,

after adding an include rule as described here I get an ASP.NET error that says "Could not find add method: IncludeTemplate (type: Coveo.Framework.Configuration.CoveoIndexConfiguration)". Oddly enough leaving only ExcludeTemplate works. What could be the problem?

Thanks in advance.

Gravatar for lbergeron@coveo.com

Comment by Luc Bergeron, Nov 5, 2015 8:21 AM

Hi,

Can you tell me which version of Sitecore and Coveo for Sitecore you have, please?

Gravatar for jaroslav.kramer@cegeka.be

Comment by jkramer, Nov 5, 2015 8:24 AM

Hello lbergeron,

it's Sitecore 7.0 and Coveo for Sitecore 70 3.0 (1123).

Gravatar for jflheureux@coveo.com

Comment by Jean-François L'Heureux, Nov 5, 2015 3:34 PM

What is the exact revision of Sitecore 7 that you use? I suspect some early revisions didn't have this method.

Gravatar for jaroslav.kramer@cegeka.be

Comment by jkramer, Nov 6, 2015 3:13 AM

Hello jflheureux ♦♦,

the diagnostic page says this:

Current Coveo for Sitecore version: 3.0.1123.0

Current Sitecore version: 7.0.130918

1 Reply
Gravatar for jflheureux@coveo.com

Answer by Jean-François L'Heureux, Nov 6, 2015 2:24 PM

Coveo for Sitecore Coveo.Framework.Configuration.CoveoIndexConfiguration class inherits the Sitecore Sitecore.ContentSearch.ProviderIndexConfiguration class which contains the IncludeTemplate(string) method.

Looking at the Sitecore.ContentSearch.dll file of Sitecore 7.0 Update-2 (rev. 130918) in JetBrains dotPeek, I found that the Sitecore.ContentSearch.ProviderIndexConfiguration class doesn't have the method IncludeTemplate(string) which is needed to make the include template feature to work. This is a limitation of Sitecore and not of Coveo for Sitecore.

I looked at previous and subsequent versions of Sitecore to find that this method was added in Sitecore 7.0 Update-3 (rev. 131127). Thus, using the include template feature is only possible from Sitecore 7.0 Update-3 or greater.

Gravatar for jaroslav.kramer@cegeka.be

Comment by jkramer, Nov 9, 2015 2:27 AM

Wow, I didn't expect such an extensive answer. Thanks for your effort jflheureux ♦♦.

Ask a question