new result type to be included in /_layouts/15/osssearchresults.aspx for a site collection

Iron Contributor


I want to enable a result type in the search result for a specific site collection. The result type will only search aspx files only. The current out of the box WebPage option brings a lot of results.


How do i achieve that?


The page is : /_layouts/15/osssearchresults.aspx for the site collection.


1 Reply

You could just edit your query to only return *.aspx - by far your simplest option


Otherwise, the documentation for adding search result types in the SharePoint Online classic search experience:


or for on-prem: