Exclude the /pages document libraries from SharePoint Search (on-prem)

Adam Kyriacou 21 Reputation points
2020-11-04T15:55:03.447+00:00

Hi, Does anyone know the best way to exclude the /Pages document libraries (there will be multiple) from the SharePoint search (SP on-prem) Ideally I would like to do something like */Pages to exclude all of them with one exclusion Does anyone know where I do this/ how to do this? Thank You

SharePoint Server
SharePoint Server
A family of Microsoft on-premises document management and storage systems.
2,214 questions
SharePoint Server Development
SharePoint Server Development
SharePoint Server: A family of Microsoft on-premises document management and storage systems.Development: The process of researching, productizing, and refining new or existing technologies.
1,571 questions
SharePoint Server Management
SharePoint Server Management
SharePoint Server: A family of Microsoft on-premises document management and storage systems.Management: The act or process of organizing, handling, directing or controlling something.
2,797 questions
0 comments No comments
{count} votes

Accepted answer
  1. Itch Sun-MSFT 2,556 Reputation points
    2020-11-05T02:10:17.61+00:00

    Hi @Adam Kyriacou

    Exclude library:

    Please navigate to the Library or List Tab (1)click on Library or List Settings (2). Go to Advanced Settings (3), here you’ll see “Allow items from this document library to appear in search results?” under “Search” (4). Set this to “No”.

    37564-image.png

    Exclude page:

    You should create a query rule:

    1. Go to Site Settings -> Search Query Rules
    2. Select the Result Source that you use, and add New Query Rule

    More information:

    https://andreaswijayablog.blogspot.com/2015/09/sharepoint-2013-how-to-exclude-specific.html

    Please note: Microsoft provides third-party contact information to help you find technical support. This contact information may change without notice. Microsoft does not guarantee the accuracy of this third-party contact information.


    If an Answer is helpful, please click "Accept Answer" and upvote it.
    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 comments No comments

0 additional answers

Sort by: Most helpful