PnP (v4) Search Webpart Not Showing Home.aspx page in Search Results - SharePoint Online

Chirag Gulati 20 Reputation points
2024-12-04T13:51:12.09+00:00

Hi All,

Looking for PnP Search Results Support - SharePoint Online

I have a search page in which I have used PnP V4 Search Webpart to fetch pages from a SitePages Library. SitePages Library has 3 pages created under it, all published, with no unique permissions, visible to all.

I used the below query to show the 3 pages in search results.

{searchTerms} (Path: https://company.sharepoint.com/sites/Functions/Functions_SubSite/SitePages/)

However, Page1 and Page2 are visible, however Page3 with name 'Home.aspx' is not visible ( I used 'Make Homepage' option)

Any suggestions??

SharePoint Development
SharePoint Development
SharePoint: A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.Development: The process of researching, productizing, and refining new or existing technologies.
3,152 questions
{count} votes

Accepted answer
  1. RaytheonXie_MSFT 37,076 Reputation points Microsoft Vendor
    2024-12-05T08:03:35.62+00:00

    Hi @Chirag Gulati,

    Per my research, you need to check if Allow this site to appear in Search results is set to Yes. Please refer to following steps

    https://learn.microsoft.com/en-us/sharepoint/troubleshoot/search/search-results-missing

    Then you will need to configure search filters and search results in the following article

    https://www.gravityunion.com/blog/how-to-configure-simple-pnp-search-on-sharepoint-site

    Since the pnp search is a 3rd part tool. And I am not familar with the issue. I would recommend you to raise a new ticket in pnp-modern-search github forum. This is a forum dedicated to discussing pnp search. You might get some more professional advice there. Thanks for your understanding.


    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.


0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.