PnP Search Results not pulling all Managed Data

Menken, Dale 0 Reputation points
2024-03-01T21:54:47.57+00:00

I'm building a People Search page in SPO and using the PnP Search Results webpart. I have the basic installation working from all the sample setups I have found but need to add two additional properties from Azure. I have added these properties to the SharePoint Profile and loaded the data. If I pull up a user profile, I can see the additional data. I have queried the properties via Get-PnPUserProfileProperty and verified the data is there in the user profile. I have verified the properties in Search Schema and they are Crawled properties and I mapped those to Managed properties. I then added these Managed properties to the search page 'Selected properties' and also to the layout slots. My problem is every time I pull up a user in the search results, the additional managed properties show as "null' for the value. Really lost at this point and any help is appreciated.

SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
9,682 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. RaytheonXie_MSFT 31,606 Reputation points Microsoft Vendor
    2024-03-04T02:23:45.4033333+00:00

    Hi @Menken, Dale,

    Is Content Approval enabled in your library? If it's enabled then Search will crawl only documents which are approved.

    Another thing you can try by getting same search result using SharePoint Search Query Tool and verify whether here you are getting value in Refinable Managed Properties or not? After doing some research, you could refer to the following issue

    https://stackoverflow.com/questions/76730483/sharepoint-pnp-modern-search-not-working-with-refinable-string-for-hub-site


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.