Override Search Service Application Row Limit Using Powershell / Object Model

Using sharepoint object model:

public static void SetMaxRowLimit()
{
            SPFarm farm = SPFarm.Local;
            SearchServiceApplication searchApp = (SearchServiceApplication)farm.Services.
                GetValue().
                Applications.GetValue("Search Service Application");

            searchApp.MaxRowLimit = 10000;
            searchApp.Update(true);

}

Using sharepoint Powershell

$SearchServiceApp = SPEnterpriseSearchServiceApplication

$SearchServiceApp .MaxRowLimit = 10000

$SearchServiceApp .Update()

Leave a Reply

Your email address will not be published. Required fields are marked *

Bitnami