I have SharePoint site collection with multiple sub sites. I need to write crawl rule for searching the content for the particular sub site alone. Is it possible in SharePoint 2007? If yes,could you help me to resolve this.


  • I am curious why you would want to cripple search in this way. What is the business case? – Matthew McDermott Feb 28 '18 at 11:45
  • The architecture has multi level sub sites so we need to write the crawl rule according to that – Hariprasad Nagendren Feb 28 '18 at 11:52
  • Don't you want to find the content in the sub sites? – Matthew McDermott Mar 1 '18 at 12:43
  • Yes i need to find the content too – Hariprasad Nagendren Apr 3 '18 at 5:32
  • If you exclude the content from the sub-sites with a crawl rule you will not find the content because it will not be included in the index. – Matthew McDermott Apr 3 '18 at 10:46

You should be able to add a crawl rule to only crawl the URL of the single sub-site. On the add a crawl rule page, in the path section, enter the path to the site with a /* at the end, e.g.


(change the URL to match what you want to crawl on your system)

Select the 'include all items in this path' option.

Note that you should test the crawl rules that have been configured. On the Manage Crawl Rules page, enter a URL for an item within the sub-site you want to crawl to ensure that it will be crawled, then enter something outside that to ensure that it will not be crawled.

Note that you may have to modify the start addresses for your crawl sources to ensure that only specific web applications are crawled. You may also need to provide a crawl rule to exclude all content within a specific area, then the crawl rule above to include only a subset of the content.

The key really is testing. Try your crawl rule(s) and test the configuration with URLs both inside the area to be crawled and outside to ensure that you're getting the expected result before actually starting the crawl itself.


It is impossible to only crawl special libraries. As an suggestion, you can create search scope to limit search results from special document libraries.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.