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.
Thanks,
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It only takes a minute to sign up.
Sign up to join this communityI 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.
Thanks,
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.
https://sharepoint.domain.com/subsite1/*
(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.