Skip to main content

Posts

Showing posts from March, 2013

Create Managed Property for Search Service Application.

Function for Create Managed property for Search Service Application. private static void CreateManagedProperty( Schema schema, string managedPropertyName, string crawledPropertyCategory, string crawledPropertyName)         {             if (!schema.AllManagedProperties.Contains(managedPropertyName))             {                              Category category = schema.AllCategories[crawledPropertyCategory];                 var crawledProps = category.QueryCrawledProperties(crawledPropertyName, 1, Guid .NewGuid(), String .Empty, true ).Cast< CrawledProperty >();   ...