Gravatar for

Question by silin, Feb 13, 2018 4:49 AM

HtmlContentInBodyWithRequestsProcessor, StartCommentText and EndCommentText do not work

I am trying to to exclude certain content of the pages using StartCommentText and EndCommentText parameters of HtmlContentInBodyWithRequestsProcessor. But that does not seem to work. The content between start and end comment is being indexed.

My configuration looks like this:

<processor type="Coveo.SearchProvider.Processors.HtmlContentInBodyWithRequestsProcessor, Coveo.SearchProviderBase">
  <StartCommentText>BEGIN NOINDEX</StartCommentText>
  <EndCommentText>END NOINDEX</EndCommentText>

I tried to debug decompiled code of HtmlContentInBodyWithRequestsProcessor class and see that properties StartCommentText and EndCommentText are null.

Is there anything I am missing in the configuration?

Gravatar for

Comment by Jean-François L'Heureux, Feb 13, 2018 10:46 AM

When you check in Showconfig.aspx, does your processor have the start/end comment texts? In which pipeline is it?

Maybe your patch file is invalid and ignored by Sitecore. Maybe you placed it in the wrong pipeline.

Also, your Coveo for Sitecore version should be September 2016 (4.0.402) or newer.

0 Reply
Ask a question