I have a top site collection
(http://myportal) and subsite
(http://myportal/teamsite) in a SharePoint 2010 based intranet.
I am trying to configure search in such a way that when a user makes a search using the default search in
http://myportal only items from the subsite shows up in the results
Additionally, any items residing in the top site collection
(http://myportal) should not be crawled or come up in the search result.
Things I have tried:
1. I have created a content source pointing to the site collection
2. I created the crawl rules in the following order:-
first rule -
http://myportal/teamsite*.* - include all items
second rule -
http://*.* - exclude all items
The problem is once the content source is crawled it indexes all items residing in the top site collection as well including the subsite. Need some advice on this.