Index with the BasicHtmlContentInBodyProcessor
Index with the BasicHtmlContentInBodyProcessor
The recommended Coveo for Sitecore HTML processor is the |
This method is the simplest way to enable full-text search on Sitecore items.
When indexing a Sitecore item, an HTML representation is generated containing the field names and values. This HTML content is then used for full-text search as well as for the Quick view.
Note that the basic HTML content processor returns the raw value of a field directly, not the rendered value.
Given the way an item excerpt is generated, the |
Configuring the processor
-
Open the
Coveo.SearchProvider.Custom.config
file in a text editor. By default the file is located in<SITECORE_INSTANCE_ROOT>\website\App_Config\Include\
. -
Locate the
coveoPostItemProcessingPipeline
element (see About thecoveoPostItemProcessingPipeline
pipeline). -
Insert the following processor sub-element right under:
<processor type="Coveo.SearchProvider.Processors.BasicHtmlContentInBodyProcessor, Coveo.SearchProviderBase"/>
-
Re-index the Sitecore items.
-
You can now perform full-text search on this HTML content.
Options on the processor
The following table provides a list of options available on the processor along with their descriptions and example values:
Name | Description | Example value |
---|---|---|
|
Whether the field names should be added to the HTML content or not. |
|
|
Whether to add only plain text fields (type="Sitecore.Data.Fields.TextField,Sitecore.Kernel" fields) in the HTML content (for example, Single-Line Text fields). |
|
|
Comma-separated list of fields to include in the HTML representation of items. |
|
|
Comma-separated list of templates whose items the |
|
Options can be configured as children of the <processor>
element, like in the following example:
<processor type="Coveo.SearchProvider.Processors.BasicHtmlContentInBodyProcessor, Coveo.SearchProviderBase">
<IncludeFieldNames>false</IncludeFieldNames>
</processor>