Limiting SharePoint Search Engine to a specific subsite
I have a site that has several subsites . Let's say company's main intranet site with finance, information technology , HR etc as subsites.I need to limit users to have search only within the specific site . Lets say when a person searches from the finance d开发者_Go百科epartment the results should come only from that department. But i want them to hav access to all departments, but the search result should be of their own department
You should create custom scopes and add conditions on those scopes limiting results to those coming from the specific URLs. When searching each scope, the users will only see results with URLs containing the starting URL you defined. You can also limit the scopes the users see in the scope selector (or hide the selector), you need to replace the search box embedded in the master page (it's a delegate control) with your own search box (same control, just with your own parameters).
精彩评论