I want to do a UnifiedSearchFor() and for all types that implement "IHaveImage" I want to project the image url to the UnifiedSearchHit.ImageUri.
Currently I am doing this in my InitilizableModule:
SearchClient.Instance.Conventions.UnifiedSearchRegistry
.ForInstanceOf()
.CustomizeProjection(
x => x.ProjectImageUriFrom(
page => new Uri("http://www.test.com"))); // this is just for test, otherwise it would be something like this: new Uri(page.Image.Url)
But it doesn't seem to be indexed. Am I doing something wrong? Is this the right way to add a image to a generic search result?
I am using the EPiServer Find v8.7.0.1103 and EPiServer v7.14.2.0.
Hi
I want to do a UnifiedSearchFor() and for all types that implement "IHaveImage" I want to project the image url to the UnifiedSearchHit.ImageUri.
Currently I am doing this in my InitilizableModule:
But it doesn't seem to be indexed. Am I doing something wrong? Is this the right way to add a image to a generic search result?
I am using the EPiServer Find v8.7.0.1103 and EPiServer v7.14.2.0.
Thanks in advance!
/Fred