Use Term facets with a Dictionary attribute

Vote:
 

I have indexed YouTubeChannelInfo objects which contains many YouTube Channel information.

YouTubeChannelInfo has a Dictionary attribute called 'Playlists' which contains Playlist Title as the key and the ID as the value. Thus, there could be many playlists for a given channel.

public class YouTubeChannelInfo
{

public string Name { get; set; } // Channel Name
public Dictionary<string, string> Playlists { get; set; } // Key - Playlist Title, Value - Playlist ID
}

What I need to get is the count of videos for every playlist. Anyway in the Episerver Find Documentation, it does not state about Dictionary attributes.

Below is an example values for the above model,

YouTubeChannelInfoObj1.Playlists --> has --> {"Animation","xxxx"},{"Comedy","xxxx"},{"Thriller","xxxx"}

YouTubeChannelInfoObj2.Playlists --> has --> {"Animation","xxxx"}

YouTubeChannelInfoObj3.Playlists --> has --> {"Animation","xxxx"},{"Thriller","xxxx"}

The output for the above should be,

Animation --> 3

Comedy --> 1

Thriller --> 2

Anyway to get this output?

#201877
Edited, Mar 06, 2019 6:43
Vote:
 

Hi,

you might want to try a nested query and maybe histogram facets. This blog might help! 

#201886
Mar 06, 2019 10:22
* 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.