FAQ

This is a collection of questions and answers about Microsoft® Content Management Server (MCMS) gathered from the MCMS newsgroup. MCMS 2002 FAQ – Table of Contents Administration Architecture Authoring Connector Clustering DCA Debugging General Installation Migration Performance Publishing API ASP Publishing API ASP.NET SCA Search Security and Rights SharePoint Portal Server Integration Site Deployment Site […]

Yesterday I received an interesting question: a customer had the need to import several hundred keywords and related best bets programmatically to a couple of site collections. And for sure he did not want to do this manually using the web UI. I found the following solution for this problem: SPSite spsite = new SPSite(“http://localhost:4007”); SearchContext searchContext = SearchContext.GetContext(spsite); Keywords keywords = new Keywords(searchContext, new Uri(“http://localhost:4007”)); // loop begin Keyword myKeyword = keywords.AllKeywords.Create(“myKeyword”, DateTime.Now); […]