I want to enable custom scopes in sharepoint in code.
Any ideas how to do this?
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 communityThis site shows you how to do it: http://www.sharepointconfig.com/2011/04/creating-sharepoint-2010-search-scopes-programmatically/
You'll want to look into the QueryManager class: http://msdn.microsoft.com/en-us/library/ee588559.aspx
This may help too: http://msdn.microsoft.com/en-us/library/ee557874.aspx