Only crawl one subsite

Daniel M 126 Reputation points


I just wanted to know if there is a way to only crawl one particular subsite.

I have seen other threads about this but the question seem to be unanswered.

I have my self tried to create two crawl rules. The first in order includes my particular /subsite/* and the number 2 in order excludes the entire web app, https://.
But it doesn't work. Any one know how to accomplish this?
We have Sharepoint 2019 on-premise.

SharePoint Server
SharePoint Server
A family of Microsoft on-premises document management and storage systems.
2,270 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. JoyZ 18,051 Reputation points

    @Daniel M ,

    Per my test, we cannot crawl only one subsite and exclude the entire site collection.

    Even though the crawl rules look fine, when a full crawl is run, the site collection(include the subsite) will not be crawled.


    As a workaroud, we suggest you create a new result resource to limit the search scope to subsite only via path:your subsite.

    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.