I am trying to pull together a list of items / documents a user has "liked." I saw that there's a crawled property ows_LikedBy
, but no managed property, so I created a managed property LikedBy
and mapped it to the crawled property.
I tried to set up a Content Search web part with a simple query of LikedBy:{User.Name}
, but that is not giving any results. I then noticed that the LikedBy
field is hidden, which means it's not getting indexed.
So is there a way to query for items a user has liked? Either through a Content Search web part / keyword query, or through some other means?
I considered un-hiding the field so it will get crawled, but I don't like the idea of changing the settings on a base SP field.
Also, I saw this question about using SPServices to get the items a user has liked, but GetListItems
will only return items from a particular list, and I need results from across the entire web app.