Forum Discussion
Markus Ihloff
Jul 16, 2019Copper Contributor
SharePoint Search & update of LikeCount
We are currently creating a new SharePoint Intranet, for displaying the news we used the spfx search result webpart (https://github.com/SharePoint/sp-dev-solutions/tree/master/solutions/ModernSearch)...
paulpascha
Jul 17, 2019Bronze Contributor
Markus IhloffI think your theory is right. To get the current real-time value for like count you should not depend on this Managed Property. A REST API is provided for you to inspect likes on a page. I think a good approach would be to create your own version of this SPFx WebPart and for each news item get the current like count by calling this API.
For more details on the API see the blog below for example:
https://www.eliostruyf.com/getting-likes-and-comments-from-modern-pages
Hope this helps!