Tuesday, March 27, 2012

SharePoint 2010 Search – december CU warning

If you are currently running a pre December 2011 CU farm and have set up custom search center be careful before installing it. It seems like the maximum number of filters per refiner limits have been set to 250. We were previously using a value of 255 for a refiner. Thus installing the CU (SPF, SPF) broke our search center page with the following error:

Internal server error exception: System.ArgumentException: Max number of filters has to be between 0 and 250 at Microsoft.Office.Server.Search.WebControls.FilterCategory.set_MaxNumberOfFilters(Int32 value)

03/20/2012 16:16:07.85 w3wp.exe (0x1578) 0x1724 SharePoint Server Search Query g1j9 Exception Internal server error exception: System.ArgumentException: Max number of filters has to be between 0 and 250 at Microsoft.Office.Server.Search.WebControls.FilterCategory.set_MaxNumberOfFilters(Int32 value) at Microsoft.Office.Server.Search.WebControls.RefinementManager.ConfigureCategories() at Microsoft.Office.Server.Search.WebControls.RefinementManager.Initialize(Location location) at Microsoft.Office.Server.Search.WebControls.CoreResultsDatasourceView.CreateLocationList() at Microsoft.Office.Server.Search.WebControls.CoreResultsDatasourceView.SetPropertiesOnQdra() at Microsoft.Office.Server.Search.WebControls.SearchResultsBaseWebPart.EnsureWebpartReady() System.ArgumentException: Max number of filters has to be between 0 and 250 at Microsoft.Office.Server.Search.WebControls.FilterCategory.set_MaxNumberOfFilters(Int32 value) at Microsoft.Office.Server.Search.WebControls.RefinementManager.ConfigureCategories() at Microsoft.Office.Server.Search.WebControls.RefinementManager.Initialize(Location location) at Microsoft.Office.Server.Search.WebControls.CoreResultsDatasourceView.CreateLocationList() at Microsoft.Office.Server.Search.WebControls.CoreResultsDatasourceView.SetPropertiesOnQdra() at Microsoft.Office.Server.Search.WebControls.SearchResultsBaseWebPart.EnsureWebpartReady()