Five New Optimizely Certifications are Here! Validate your expertise and advance your career with our latest certification exams. Click here to find out more
AI OnAI Off
Five New Optimizely Certifications are Here! Validate your expertise and advance your career with our latest certification exams. Click here to find out more
Try adding a Filter with the Ancestors method. Example: .Filter(x => x.Ancestors().Match(myContentLink))
Hope this helps.
Frederik
Ancestors will work, but "x" in this case will be ISearchContent, so you'll need to cast to IContent:
.Filter(x => ((IContent)x).Ancestors().Match("9"))
I want to have two search pages. One which search the entire site and one that just searches in just a specific page node. I want to return both pages and related media. How would I go about doing this?