November Happy Hour will be moved to Thursday December 5th.
AI OnAI Off
November Happy Hour will be moved to Thursday December 5th.
Try something like this
SearchClient.Instance.UnifiedSearch()
.Filter(x => ((InfoPage)x).Ancestors().Match(currentPage.PageLink.ToString()))
.Filter(x => x.SearchTitle("foresatte"))
.GetResult()
You can also project the Search Title from any property i.e.
.ProjectTitleFrom(x => x.Name);
I assume you meant Search and Navigation. You can simply add this
public static IEnumerable<string> AncestorNames(this IContent content)
{
return _contentLoader.GetAncestors(content.ContentLink.ToReferenceWithoutVersion()).Select(x => x.Name);
}
then include it in your convention then use in your query.
Hello.
I am trying to write a query where I want to search that if any of the ancestors has a particular name. I wrote this but doesn't work
I tried this as well
When I do this
Then I get back ids, but I want page name to search on.