A critical vulnerability was discovered in React Server Components (Next.js). Our systems remain protected but we advise to update packages to newest version. Learn More.
AI OnAI Off
A critical vulnerability was discovered in React Server Components (Next.js). Our systems remain protected but we advise to update packages to newest version. Learn More.
AFAIK type in index already has partent chain path with ids - but for denormalization you can try to include StartPgeId field or so in indexable fields.
SearchClient.Instance.Conventions.ForInstancesOf<PageData>().IncludeField(x => x.StartPageId());
..
public static string StartPageId(this PageData content)
{
// travel by ParentLink to find top most parent (StartPage) or fetch StartPage from repository directly
}
Then you can use this field to query for content for specific site.
How do I fetch what startpage (in a multisite) a document belongs to?.
I want to index all mediadata with its belonging startpage id so that I can filter this site per site.