Only crawl one subsite

Daniel M 126 Reputation points
2022-01-19T14:07:32.827+00:00

Hi,

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.
https://sharepoint.stackexchange.com/questions/44522/how-to-limit-search-crawl-only-to-subsite

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
    2022-01-20T03:18:50.847+00:00

    @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.

    166626-image.png

    166577-image.png
    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.