FIX: Incomplete search results when you search non-English content on a Commerce Server 2009 website if you use the Search Results Web Part

Se aplica a: Commerce Server 2009 EnterpriseCommerce Server 2009 Standard

Symptoms


Consider the following scenario:
  • You create a non-English Microsoft Commerce Server 2009 website that uses the Search Results Web Part for Commerce Server.
  • The regional setting for the website is set to a language, and the operating system that hosts the website is set to another language. For example, you set a site variation for website to the zh-cn (Chinese) setting, and the operating system that hosts the website is set to an English language setting.
  • You use the SharePoint Commerce Services Configuration Wizard to deploy the website to a SharePoint server.
  • You use the Web Part to search for some non-English strings.
In this scenario, incomplete search results are returned.

Note If you use the SharePoint Core Search Web Part to search the website, the correct results may be returned.

Cause


This issue occurs because the language setting that is used to query the SharePoint site content is not same as the language setting that is used to index the crawl result.

The Search Results Web Part for Commerce Server uses the language setting from the site variation of the SharePoint website. However, SharePoint indexes the crawl results by using the language setting of the operating system.

Note The SharePoint Core Search Web Part uses the languages setting from the client browser. If the client browser language setting is same as the operating system that hosts SharePoint, you receive the correct search results.

Resolution


Hotfix information

Note This hotfix adds an option that lets you choose the query language when you perform SharePoint content searches. This option can be set to the language setting of the browser or to a specific language if the hosted website uses a different language that is set in a site variation on the hosting server. By default, SharePoint still uses the language setting from the site variation for the SharePoint website.

A supported hotfix is available from Microsoft. However, this hotfix is intended to correct only the problem that is described in this article. Apply this hotfix only to systems that are experiencing the problem described in this article. This hotfix might receive additional testing. Therefore, if you are not severely affected by this problem, we recommend that you wait for the next software update that contains this hotfix.

If the hotfix is available for download, there is a "Hotfix download available" section at the top of this Knowledge Base article. If this section does not appear, contact Microsoft Customer Service and Support to obtain the hotfix.

Note If additional issues occur or if any troubleshooting is required, you might have to create a separate service request. The usual support costs will apply to additional support questions and issues that do not qualify for this specific hotfix. For a complete list of Microsoft Customer Service and Support telephone numbers or to create a separate service request, visit the following Microsoft website: Note The "Hotfix download available" form displays the languages for which the hotfix is available. If you do not see your language, it is because a hotfix is not available for that language.

Prerequisites

To apply this hotfix, you must have Commerce Server 2009 installed.

Restart requirement

You do not have to restart the computer after you apply this hotfix. However, you must restart Internet Information Services (IIS) after you apply this hotfix.

To restart IIS, type the following command at a command prompt, and then press ENTER:
IISRESET /RESTART
Note This command stops and then restarts all IIS services that are running on a computer.

Hotfix replacement information

This hotfix does not replace a previously released hotfix.

Installation steps

If you use Microsoft Commerce Server 2009 together with SharePoint Server 2010, download and install the hotfix package that has the "CS2009TP_KB2618435" label. If you use Microsoft Commerce Server 2009 RTM together with SharePoint Server 2007, download and install the hotfix package that has the "CS2009RTM_KB2618435" label. These two hotfix packages contain the following files:
  • The "CS2009RTM_KB2618435" hotfix package contains the following files:
    • CS2009-KB2618435-x86.exe
    • Hotfix.txt
    • Source.zip
  • The "CS2009TP_KB2618435" hotfix package contains the following files:
    • CS2009TP-KB2618435-x86.exe
    • Hotfix.txt
    • Source.zip
Notes
  • The installation file that you have to install depends on the version of SharePoint that is installed on the computer that is running Commerce Server.
  • You must use the local administrator account to install this hotfix, or you must run the hotfix by using the Run as Administrator command. If the computer is running Windows Vista, Windows Server 2008, or a later operating system, and if User Account Control (UAC) is enabled, we recommend that you use the Run as Administrator command.
After you run the installation file, use the method described for one of the following computer configurations to resolve the issue:
  • Configuration 1
    If no sites are deployed, run the SharePoint Commerce Services Configuration Wizard to deploy the new site by using the updated MicrosoftCommerceWebParts.WSP solution file.
  • Configuration 2
    If some sites are deployed, run the following stsadm command to deploy the updated Web solution package (WSP) file:
    stsadm -o upgradesolution -name microsoftcommercewebparts.wsp -filename MicrosoftCommerceWebParts.WSP -immediate -allowgacdeployment
  • Configuration 3
    If Web Parts are customized by using the CommerceSharePointExtensibilityKit tool, follow these steps:
    1. Locate the updated source files in the source folder that is included in this hotfix package. The detailed file list for the Source.zip file is included in a table of the "File information" section.
    2. Use the updated file to replace the files that are in the CommerceSharePointExtensibilityKit folder, and then merge the changes to code.
    3. Compile the assemblies for the Web Parts.
    4. Deploy the new MicrosoftCommerceWebParts.WSP file.
After you install and configure the update, follow these steps to use the new property:
  1. Locate Search Results Web Part, click Edit, and then click Modify Shared Web Part.
  2. In the new Result Query Language list, select the values that are based on the development of the site.
    Notes
    • The default value of the list is automatically populated with the language settings of the site variations for the SharePoint website.
    • The Browser Locale setting is the language setting of the client browser settings. This setting uses a search method that is similar to the search method that is used by the SharePoint Core Search Web Part.
    • You can select a specific language for a single SharePoint instance that hosts multiple site variations that have different language settings.


File information

The English version of this hotfix has the file attributes (or later file attributes) that are listed in the following table. The dates and times for these files are listed in Coordinated Universal Time (UTC). When you view the file information, it is converted to local time. To find the difference between UTC and local time, use the Time Zone tab in the Date and Time item in Control Panel.
For Microsoft Commerce Server 2009 RTM

File nameFile versionFile sizeDateTimePlatform
Fl_microsoftcommercewebparts.wspNot applicable701,58822-Sep-201110:15Not applicable
Microsoft.commerce.common.dll1.0.20123.3483,82421-Sep-201122:12x86
Microsoft.commerce.contracts.dll1.0.20123.3492,02421-Sep-201122:12x86
Microsoft.commerce.providers.dll1.0.20123.34690,04021-Sep-201122:12x86
Source.zip file for Microsoft Commerce Server 2009 RTM

File nameFile sizeDateTimePath
Searchcontroller.cs16,72721-Sep-201114:31source\common\controllers
Crosssitescriptingencoder.cs4,50721-Sep-201114:31source\sharepointcommon
Sharepointcommon.csproj7,94321-Sep-201114:31source\sharepointcommon
Iquerylanguagewebpart.cs84921-Sep-201114:31source\sharepointcommon\editorparts
Querylanguageeditorpart.cs4,45621-Sep-201114:31source\sharepointcommon\editorparts
Searchresultspresenter.cs35,89721-Sep-201114:31source\ui\search\presenters
Isearchresults.cs5,85121-Sep-201114:31source\ui\search\views
Searchresultswebpart.cs74,55121-Sep-201114:31source\ui\search\webparts\searchresults
Spsearchresultswebpart.cs18,79621-Sep-201114:31source\ui\searchsharepoint\webparts\searchresults
Common.designer.cs9,39221-Sep-201114:31source\wspdeployment\wspbuild\resources
Common.resx9,11321-Sep-201114:31source\wspdeployment\wspbuild\resources
Searchresources.resx35,44002-Oct-201104:41source\wspdeployment\wspbuild\resources


For Microsoft Commerce Server 2009 TP

File nameFile versionFile sizeDateTimePlatform
Fl_microsoftcommercewebparts.wspNot applicable708,99207-Nov-201121:46Not applicable
Microsoft.commerce.common.dll1.0.30611.1783,82407-Nov-201121:34x86
Microsoft.commerce.contracts.dll1.0.30611.1792,02407-Nov-201121:34x86
Microsoft.commerce.providers.dll1.0.30611.17690,04007-Nov-201121:34x86
Source.zip file for Microsoft Commerce Server 2009 TP
File nameFile sizeDateTimePath
Searchcontroller.cs16,72716-Nov-201106:03source\common\controllers
Sharepointcommon.csproj9,28616-Nov-201106:04source\sharepointcommon
Iquerylanguagewebpart.cs84916-Nov-201106:04source\sharepointcommon\editorparts
Querylanguageeditorpart.cs4,45616-Nov-201106:04source\sharepointcommon\editorparts
Searchresultspresenter.cs35,89716-Nov-201106:05source\ui\search\presenters
Isearchresults.cs5,85116-Nov-201106:05source\ui\search\views
Searchresultswebpart.cs74,55116-Nov-201106:05source\ui\search\webparts\searchresults
Common.designer.cs10,18016-Nov-201106:05source\wspdeployment\wspbuild\resources
Common.resx9,40916-Nov-201106:05source\wspdeployment\wspbuild\resources
Searchresources.resx35,44016-Nov-201106:05source\wspdeployment\wspbuild\resources

Status


Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.

References


For more information about the Search Results Web Part, visit the following MSDN website:
For more information about how configure the Search Core Results Web Part, visit the following Microsoft TechNet website: