Jun 29 2018 06:55 AM
We are trying to build out a KB using the new Communication Site templates in SharePoint Online. What we are running into is that the search is returning pages, files, folders, etc. We only want to return the pages that we have built as part of our KB. Is there a way to restrict or filter down those results to just be pages? I have built a Basic Search Center as a sub-site to our KB site but even that site is not allowing me to edit the search results pages, which is really frustrating as I have not run into these problems before. I am a Global and SharePoint admin in our tenant and a site owner, so permissions shouldn't be a problem.
Jun 29 2018 10:55 AM
Jun 29 2018 11:04 AM
Are you trying to edit _layouts/OSSSearchResults.aspx page? You will not be able to edit this page. You need to build the search center subsite. Follow this article replace the default search results page and you should be able to edit.
https://kalmstrom.com/Tips/SharePoint-Online-Course/SharePoint-Search-Center.htm
Jul 12 2018 11:42 AM
No, I am trying to edit a page in a Search sub-site: /sites/ITKB/search/results.aspx?k=password.
I would also like to be able to make changes to this page: /sites/ITKB/_layouts/15/search.aspx/siteall?q=password. That is a nice search experience in the modern look and feel, but the limitations on it are bad. No way to adjust the scope or filter out just pages, etc.
Any suggestions?
Jul 12 2018 11:44 AM
Jul 12 2018 12:41 PM
Jul 12 2018 01:13 PM
I will take a look at this. We have a developer who may be able to help me out with this one. Appreciate the feedback.
Jul 12 2018 01:41 PM
Hey Joe - How about just using the library settings and setting all the libraries you don't want to show to not be included in the search index. I'm doing this in one of our modern sites now and it's only returning pages when I search on that particular site.