Hi ,
I have been tring to get search results under specific page(parent page) uisng unified search query, able to get pages (respective parent page) and all media document irrespective of parent page. So I need to finter the document with parent page.
Scenario:
Page and under that page we will have content area may accept AssociatedDocumentItem (It will contain the document property accept only generic media(Media type)).
When I do search I am able to get Icontent(Pages and documents), but I am not able to find out relation between document to AssociatedDocumentItem and Page i.e. document parentbpage
Below is my query.
searchQry = searchQry.Filter(x => !x.MatchTypeHierarchy(typeof(SitePageData)) | ((SitePageData)x).Ancestors().Match(parentId)); -- getting all documents and pages under parent. Not able to apply Ancestors().Match for documents.
Regards,
Narayana