This content is archived. See latest version here

Last updated: Apr 03 2014


Sometimes it is necessary to index not only the saved/published page, but also pages related to it to preserve consistency in the index. One such case may be if we have indexed the child count for a page and want to have it updated whenever a child page is published.


To index related pages, we set the RelatedPages convention to return the parent page when indexing. This way the parent page will be reindexed and its child count updated.

  .RelatedPages(x =>
    var relatedPages = new PageDataCollection();
    if (!(x.PageLink.CompareToIgnoreWorkID(PageReference.StartPage) || 
    return relatedPages;

Note that this functionality is not related to finding pages with similar or related content. For such functionality, refer to the MoreLike method described in the Searching section of this documentation.

Do you have feedback on this documentation? Send an email to For development-related questions and discussions, refer to our Forums on