Skip to end of metadata
Go to start of metadata


There is an alternative method to achieve a similar result, which has you create a new quick view layout (see Indexing Items with HTML Content Processor).


When indexing an item, you might want to ignore certain sections of the HTML body of a layout, sublayout, view, or of a specific item. To do so, simply follow these steps.

Enable the HtmlContentInBodyWithRequestsProcessor

Before modifying the HTML of your items, you need to enable the processor that allows you to customize which sections gets indexed. To do so, follow these steps:

  1. In the Coveo.SearchProvider.Custom.config file (usually located under <your Sitecore instance>\Website\App_Config\Include\Coveo), in the coveoPostItemProcessingPipeline node, add the following processor:

  2. Inside the processor node, add the following elements:


    You can replace BEGIN NOINDEX and END NOINDEX with any text of your choice. However, be aware that you must adapt the rest of this tutorial to reflect this change.

Modify the HTML of Your Item

Now that the processor is enabled, you simply need to edit the HTML of the layout, sublayout, view, or item you wish to modify. To do so, simply follow these steps:

  1. Open the HTML of the item you wish to modify:
    1. For a layout or sublayout, navigate to the <your Sitecore instance>\Website\layouts folder, and open the .aspx file you wish to modify.
    2. For a view, navigate to <your Sitecore instance>\Website\Views folder, and open the .cshtml file you wish to modify.
    3. For a specific item, in your Sitecore Content Editor, select the item you wish to modify and, under the section you wish to modify, select Edit HTML. If you do not have the Edit HTML option, simply edit in the textbox itself.
  2. Add <!-- BEGIN NOINDEX --> and <!-- END NOINDEX --> around the part you do not want to index, as such:

  3. Save your item, and rebuild it (see Re-Indexing Only a Section of Your Content Tree). Your undesired sections should now be ignored by the index.


  • No labels