Tag Archives: Search

Get SearchServiceApplication in PowerShell

In C# when retrieving the default SearchServiceApplication object you might do something like the following, if you were trying to initiate a new Schema object, for example: SPServiceContext serviceContext = SPServiceContext.GetContext(SPContext.Current.Site);   SearchServiceApplicationProxy searchApplicationProxy = serviceContext.GetDefaultProxy(typeof(SearchServiceApplicationProxy)) as SearchServiceApplicationProxy;   Guid … Continue reading

Posted in SharePoint | Tagged , , | Leave a comment

Get SearchServiceApplication object instance

Looking to retrieve the SearchServiceApplication object for the current site? It’s pretty straight forward, as the following demonstrates: Start by adding the following namespace to your class using Microsoft.Office.Server.Search.Administration;using Microsoft.Office.Server.Search.Administration; The Microsoft.Office.Server assembly can be found in the ISAPI folder … Continue reading

Posted in SharePoint | Tagged , | 1 Comment