Quantcast
Channel: Optimizely Search & Navigation
Viewing all articles
Browse latest Browse all 6894

EpiFind: search only on parents children

$
0
0

Hi!

I am trying to make a search result, with Find, with rsults only from currentpage and its children. I would like somthing like FilterOnCurrentSite() but for only currentpage and its children. Does anyone know hos I can do this?

Code:

search = search
.ExcludeDeleted()
.CurrentlyPublished()
.FilterOnCurrentSite()
.TermsFacetFor(arr => arr.MainL, facetRequest =>
{
facetRequest.AllTerms = true;
facetRequest.Size = MaxFacets;
})
.TermsFacetFor(arr => arr.CNames, facetRequest =>
{
facetRequest.AllTerms = true;
facetRequest.Size = MaxFacets;
});


Viewing all articles
Browse latest Browse all 6894