I want to restrict the search for some sub sites in my SharePoint 2010 environment. I want to use WebId managed property which represents the GUID of the sub site.


You can create a new scope in SharePoint center administration->Manage service applications->search service application->Scope, create rules to set the property query with "WebId".

In the search result web part, select the relevant scope for results.

  • I have developed custom search using KQL so I need to pass the WebId in the QueryText of the KQL. – Litt Spector Sep 13 '18 at 5:13

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.