Try our conversational search powered by Generative AI!

Missing most data on UnifiedSearchHit of VersioningFile

Vote:
 

I am doing a UnifiedSearchFor and I can see that I get results of type VersioningFile.

For these UnifiedSearchHit objects Url and Title properties are empty.

Search view in Find admin shows the file hits correctly.

I had a similiar problem for PageData hits before implementing ISearchContent on my base type.

I have tried projecting the properties in a manor like this without any luck:

SearchClient.Instance.Conventions.UnifiedSearchRegistry
                .ForInstanceOf<UnifiedFile>()
                .CustomizeProjection(x => x.ProjectUrlFrom<UnifiedFile>(file => file.VirtualPath));

In my init module I have:

SearchClient.Instance.Conventions.UnifiedSearchRegistry.Add(typeof(UnifiedFile));
#63724
Nov 27, 2012 16:26
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.