Index content areas
Describes methods for indexing content in Optimizely Content Management System (CMS) content areas.
By default, Optimizely Search & Navigation does not index content in a content area.
In Optimizely Content Management System (CMS), content can be placed in a content area, which is a property of the type ContentArea
. While content in a content area is not indexed by default as part of the main content, methods are available for indexing such content. Use one of the following strategies to index, for example block type content, inside a content area.
- Use the content type'sÂ
IndexInContentAreas
attribute. All instances of the content type that are dropped in a content area are indexed as a part of the main content. - In admin mode, create a Boolean property for the content type (selected/not selected) with the name
IndexInContentAreas
, and set its value to True. All instances of that content type in a content area are indexed as part of the main content. - Change the default behavior of the
IContentIndexerConventions.ShouldIndexInContentAreaConvention
. - To limit the serialized object depth when having nestedÂ
ContentAreas
, the serialization contract for theÂContentArea
type can be modified using theÂMaxDepthContentAreaConverter
method (by default all nestedContentAreas
are indexed):
SearchClient.Instance.Conventions.ForinstancesOf<ContentArea>().ModifyContract(x => x.Converter = new MaxDepthContentAreaConverter(int maxDepth));
Updated 4 months ago