Five New Optimizely Certifications are Here! Validate your expertise and advance your career with our latest certification exams. Click here to find out more
AI OnAI Off
Five New Optimizely Certifications are Here! Validate your expertise and advance your career with our latest certification exams. Click here to find out more
public static T GetOriginalObject<T>(this UnifiedSearchHit hit) { if (hit.OriginalObjectGetter != null) { var original = hit.OriginalObjectGetter.Invoke(); if (original is T) { return (T)original; } } return default(T); }
How would I impliment this in the Alloy FindSearchPage?
I'd love to have more complete sample code for Find.
Hi there,
Not sure if I'm missing something simple here, does anyone know an efficient way of getting the PageData or IContent reference from a Unified Search result in Episerver Find?
I know one way it could be done is doing a content repository lookup from the URL, but I would've thought the UnifiedSearchResult object would include a content reference buried somewhere in the results?
Cheers