This content is archived. See latest version here

Last updated: Nov 16 2015

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 have feedback on this documentation? Send an email to For development-related questions and discussions, refer to our Forums on