Share via

Search rules with sp

Karen Arul 1 Reputation point
2022-01-28T21:07:20.073+00:00

I have a news site for public users and I need to configure search to only show pages and specific documents , not document library, lists, list items and all items. Aspx and other system pages... Etc

Please provide me the propsed list of search rules for anything should not be appearing in the search else pages and specific documents!

Thanks

Microsoft 365 and Office | SharePoint Server | For business
0 comments No comments

1 answer

Sort by: Most helpful
  1. Allen Xu_MSFT 13,896 Reputation points
    2022-01-31T07:54:36.163+00:00

    Hi @Karen Arul ,

    Go to site settings > Result Source > New Result Source > Scroll down to Query Transform section > Type in Query text the URL of you wanted pages and documents like below > Save.
    169730-image.png

    Back to Result Source page and set the result source created above as default.
    169756-image.png

    ----------

    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.

    Was this answer helpful?


Your answer

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