Replies: 3 comments
-
Try to see what the API returns using one of the tools listed here https://microsoft-search.github.io/pnp-modern-search/using-query-tools-to-verify-issues/ |
Beta Was this translation helpful? Give feedback.
-
There seems to be a special treatment when crawling "Homepages". The “Homepage” of a site does not exist in the search index with managed property value “ In other words: the crawled Homepage-item is not being treated as a "List-Item" in the search index, but instead as a "Site". Furthermore, the managed property “ And that's the reason, why your query doesn't cover all expected results when you query the path https://.../SitePages/. But you could give the following query a try: Explanation:
|
Beta Was this translation helpful? Give feedback.
-
This is legacy "by design" in SharePoint. The home page of a site will always be indexed as a site entity. The only way to change this if you want the site+page is by using a "hack" I do not recommend which is to break permission inheritance on the home page. If you do this you will get one result on the site result and one on the home page result. If you want to treat the home page as a page, then include it using |
Beta Was this translation helpful? Give feedback.
-
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??
Beta Was this translation helpful? Give feedback.
All reactions