Area: Optimizely Search & Navigation
Applies to versions: 12 and higher
Other versions:

Related content and dependencies

Recommended reading 

This topic explains how to index content items that are related, for example child content in a content structure, for a solution with Optimizely Search & Navigation and Optimizely CMS.

Note: This functionality is not related to finding similar or related content. For such functionality, use the MoreLike method, described in the Searching section.

Indexing related content

Sometimes, to preserve consistency in the index, it is necessary to index not only saved/published content but also related content. For example, you indexed the child count for content and want it updated whenever "child content" is published.


To index related content, set the RelatedContent convention to return parent content when indexing. This way, parent content is reindexed and its child count is updated.

  .RelatedContent(x =>
    var relatedContent = new List<IContent>();
    if (!(x.ContentLink.CompareToIgnoreWorkID(ContentReference.StartPage) || 
    return relatedContent;
Do you find this information helpful? Please log in to provide feedback.

Last updated: Oct 31, 2016

Recommended reading