SharePoint federated search may cause performance problems because of default settings

September 9, 2009   11:16


slow SharePoint searchMy colleague Vincent Boer has been working very hard at one of our clients to sort out a performance problem at their SharePoint Intranet portal.

The problem was that after a search in the search center was performed, the browser would not navigate any further for 1 or 2 minutes. Finally this blog of Sourav provided the right solution.

Since the Infrastructure update, search has been extended with Federated search. The default setting for the federated search results, is to query the online OpenSearch for results. This is fine as long as the web server has internet access, but if internet access is restricted, performance problems will occur in the SharePoint environment. The solution is to alter the configuration and set Federated Search to use the local Index. Basically you’ll have to decide if you would like to use OpenSearch and enable internet access for the server, or keep it locked and use the classic index.

Somehow Microsoft did not include any clear instructions with the Infrastructure update about this new default setting and possible implications for non internet enabled servers. If your Search center is experiencing performance issues, check out Sourav’s blog posting for a possible solution and detailed steps to solve it.

Tags: , , , , , , , .





Remove search “this site” from the Search dropdown

March 22, 2008   12:09


Remove search this site from the Search dropdownFor one of our customers we wanted to remove the search “this site” option from the dropdown. The site consists only of some rollup information and a single page, so searching it for content makes no sense. The search this site option also ignores the search center url specified in the configuration, another reason to remove it.

As described in this post at TechNet you can disable the option by editing the OSearchEnhancedFeature, but this would affect all sites, and editing standard features is not a clean option as it might be overwritten with service packs.

I decided to remove the dropdown value with the help of some javascript. Just insert a Content Editor Web Part and insert the following javascript code:

<script language=”javascript”>
  var searchDropDown =
  document.all.ctl00$PlaceHolderSearchArea$ctl01$SBScopesDDL;
  var removeID = 100;
  for (var x = 0; x <= searchDropDown.options.length-1; x++)
  {
    if (searchDropDown.options[x].value=="This Site") {
      removeID = x;
    }
  }
  if (removeID<100) {
    searchDropDown.remove(removeID);
  }
</script>

This code will remove the option from the dropdown and it’s tested in IE and Firefox.

You can also download this preconfigured Web Part and add it to the required page. Enjoy!

Tags: , , , , , .









The content expressed in this blog are those of Edwin Vriethoff and do not represent his employer's view in anyway. The contents of this blog has been carefully put together, but Edwin Vriethoff is not responsible in any way for any direct or indirect harm caused by individuals or organizations using the content of this blog in any way.