1

I can't seem to find the correct managed property for both modern Comments Count & Likes Count at all as all managed property within schema returned 0 counts. enter image description here

enter image description here

I would like to avoid additional query again just to get each items likes/comments count when querying news posts using search api.

https://pnp.github.io/pnpjs/sp/docs/comments-likes/

1 Answer 1

0

If it's returing 0, make sure you have set Crawl properly and everything goes fine...

Otherwise you can create your own Managed property and will it with the both crawled property, dont forget to set appropriate type and searchable, queryable, etc...

3
  • LikesCount are already mapped to LikesCount. And I can't seem to find the correct crawled property for modern Comments & Likes too. Any idea and suggestion for the correct crawled property?
    – Jonathan
    Feb 14, 2019 at 8:18
  • so this is SharePoint Online? if you are mentoing modern likes? Feb 14, 2019 at 10:49
  • Yes, SP Online and modern likes + comments counts
    – Jonathan
    Feb 15, 2019 at 14:14

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.