I have a custom search results page. In 5 environments across dev and QA we can use this Search Settings site collection administration page (_layouts/enhancedSearch.aspx) to specify:
- Do not use custom scopes
- Do not show scope dropdown, and default to contextual scope
- Our own custom site collection search results page
I actually set the site collection search results page using PowerShell (yes, it is really "TRAGET" in the property name):
$web.AllProperties["SRCH_TRAGET_RESULTS_PAGE"] = $searchResultsPage
$web.Update()
Unfortunately, in our UAT environment this doesn't work. When viewing the Search Settings page, it all looks correct, but the scopes drop down shows and clicking on search takes the user to the OSSSearchResults.aspx page.
I have seen before where changing these settings can take several seconds to actually work, but this was done yesterday and we have just tested after doing an IISRESET to no avail.
Is there any additional trick to getting this to work? We created the site collection using our scripts and know that the masterpage is using the standard search box. This is SharePoint 2010 Standard if that makes any difference.