London Dev Meetup Rescheduled! Due to unavoidable reasons, the event has been moved to 21st May. Speakers remain the same—any changes will be communicated. Seats are limited—register here to secure your spot!
AI OnAI Off
London Dev Meetup Rescheduled! Due to unavoidable reasons, the event has been moved to 21st May. Speakers remain the same—any changes will be communicated. Seats are limited—register here to secure your spot!
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.