Calling all developers! We invite you to provide your input on Feature Experimentation by completing this brief survey.
Calling all developers! We invite you to provide your input on Feature Experimentation by completing this brief survey.
Answering my own question:
var pageBranchFilter = SearchClient.Instance.BuildFilter<IContent>(); pageBranchFilter = pageBranchFilter.Or(x => x.Ancestors().Match("48")); myQuery = myQuery.Filter(pageBranchFilter);
face-palm.... :-)
Answering my own question:
var pageBranchFilter = SearchClient.Instance.BuildFilter<IContent>(); pageBranchFilter = pageBranchFilter.Or(x => x.Ancestors().Match("48")); myQuery = myQuery.Filter(pageBranchFilter);
face-palm.... :-)
Answering my own question:
var pageBranchFilter = SearchClient.Instance.BuildFilter<IContent>(); pageBranchFilter = pageBranchFilter.Or(x => x.Ancestors().Match("48")); myQuery = myQuery.Filter(pageBranchFilter);
face-palm.... :-)
Answering my own question:
var pageBranchFilter = SearchClient.Instance.BuildFilter<IContent>(); pageBranchFilter = pageBranchFilter.Or(x => x.Ancestors().Match("48")); myQuery = myQuery.Filter(pageBranchFilter);
face-palm.... :-)
When searching I only want to get pages in specific branches of the page tree.
This works fine:
But shouldn't this give the same result?
The second approach is completely ignored when doing the search.