Microsoft KB Archive/929912

= How to turn on word breakers and stemmers in SharePoint Server 2007 =

Article ID: 929912

Article Last Modified on 5/14/2007

-

APPLIES TO


 * Microsoft Office SharePoint Server 2007

-



Important This article contains information about how to modify the registry. Make sure that you back up the registry before you modify it. Make sure that you know how to restore the registry if a problem occurs. For more information about how to back up, restore, and modify the registry, click the following article number to view the article in the Microsoft Knowledge Base:

256986 Description of the Microsoft Windows registry



SYMPTOMS
By default, some language-specific word breakers are disabled when you install Microsoft Office SharePoint Server 2007. When you perform a search query in one of the affected languages, the search results may be missing some of the expected documents. Additionally, some documents that do not match the search query are returned.



CAUSE
This issue occurs when word breakers are disabled for the language that is specified in the search query. In this case, the query text is not parsed by using the rules of the specified language or the rules of the document language. Instead, the multilanguage word breaker is used to crawl documents.



RESOLUTION
Warning Serious problems might occur if you modify the registry incorrectly by using Registry Editor or by using another method. These problems might require that you reinstall the operating system. Microsoft cannot guarantee that these problems can be solved. Modify the registry at your own risk.

To resolve this issue, you must turn on word breakers and stemmers. You must also register the word breakers for the languages that you want to enable on each SharePoint Server 2007 index server and query server in the server farm. By default, word breakers for the following languages are installed:

Note These word breakers are installed. However, they are not enabled on each SharePoint Server 2007 server in the farm.
 * Czech
 * Danish
 * Finnish
 * Greek
 * Hungarian
 * Polish
 * Turkish

To register word breakers and stemmers for any of these languages, you must follow these steps:
 * 1) Create the Langres.reg file.
 * 2) Run the Langres.reg file on each SharePoint Server 2007 index server and query server in the farm.
 * 3) Verify the registry settings.
 * 4) Restart the OSearch service on each SharePoint Server 2007 index server and query server in the farm.
 * 5) Perform a full crawl.

Step 1: Create the Langres.reg file
 Use an account that has administrative permissions to log on to the computer that is running SharePoint Server 2007. Click Start, click Run, type notepad, and then click OK.  Type or copy the following text into Notepad: Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office Server\12.0\Search\Setup\ContentIndexCommon\LanguageResources\Default]   For each language that you want to register, append the following code to the end of the file in Notepad:

If you want to register the word breakers for all the languages that are shown in the previous table, the file would resemble the following: Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office Server\12.0\Search\Setup\ContentIndexCommon\LanguageResources\Default]

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office Server\12.0\Search\Setup\ContentIndexCommon\LanguageResources\Default\Czech] &quot;Locale&quot;=dword:00000405 &quot;IsInstalled&quot;=dword:00000001 &quot;WBreakerClass&quot;=&quot;{F1E0C4F9-9F21-4636-A1F9-B958DB99E96C}&quot; &quot;StemmerClass&quot;=&quot;{AC561AC9-CCD6-4970-B3C2-34B7D5E89D8E}&quot; &quot;StemmerDLLPathOverride&quot;=hex(2):25,00,50,00,52,00,4f,00,47,00,52,00,41,00,4d,\ 00,46,00,49,00,4c,00,45,00,53,00,25,00,5c,00,5c,00,4d,00,49,00,43,00,52,00,\ 4f,00,53,00,4f,00,46,00,54,00,20,00,4f,00,46,00,46,00,49,00,43,00,45,00,20,\ 00,53,00,45,00,52,00,56,00,45,00,52,00,53,00,5c,00,5c,00,31,00,32,00,2e,00,\ 30,00,5c,00,5c,00,42,00,69,00,6e,00,5c,00,5c,00,68,00,75,00,63,00,7a,00,6c,\ 00,72,00,2e,00,64,00,6c,00,6c,00,00,00 &quot;WBDLLPathOverride&quot;=hex(2):25,00,50,00,52,00,4f,00,47,00,52,00,41,00,4d,00,46,\ 00,49,00,4c,00,45,00,53,00,25,00,5c,00,5c,00,4d,00,49,00,43,00,52,00,4f,00,\ 53,00,4f,00,46,00,54,00,20,00,4f,00,46,00,46,00,49,00,43,00,45,00,20,00,53,\ 00,45,00,52,00,56,00,45,00,52,00,53,00,5c,00,5c,00,31,00,32,00,2e,00,30,00,\ 5c,00,5c,00,42,00,69,00,6e,00,5c,00,5c,00,68,00,75,00,63,00,7a,00,6c,00,72,\ 00,2e,00,64,00,6c,00,6c,00,00,00

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office Server\12.0\Search\Setup\ContentIndexCommon\LanguageResources\Default\Danish] &quot;Locale&quot;=dword:00000406 &quot;IsInstalled&quot;=dword:00000001 &quot;WBreakerClass&quot;=&quot;{16BC5CE4-2C78-4CB9-80D5-386A68CC2B2D}&quot; &quot;StemmerClass&quot;=&quot;{83BC7EF7-D27B-4950-A743-0F8E5CA928F8}&quot; &quot;StemmerDLLPathOverride&quot;=hex(2):25,00,50,00,52,00,4f,00,47,00,52,00,41,00,4d,\ 00,46,00,49,00,4c,00,45,00,53,00,25,00,5c,00,5c,00,4d,00,49,00,43,00,52,00,\ 4f,00,53,00,4f,00,46,00,54,00,20,00,4f,00,46,00,46,00,49,00,43,00,45,00,20,\ 00,53,00,45,00,52,00,56,00,45,00,52,00,53,00,5c,00,5c,00,31,00,32,00,2e,00,\ 30,00,5c,00,5c,00,42,00,69,00,6e,00,5c,00,5c,00,64,00,61,00,6e,00,6c,00,72,\ 00,2e,00,64,00,6c,00,6c,00,00,00 &quot;WBDLLPathOverride&quot;=hex(2):25,00,50,00,52,00,4f,00,47,00,52,00,41,00,4d,00,46,\ 00,49,00,4c,00,45,00,53,00,25,00,5c,00,5c,00,4d,00,49,00,43,00,52,00,4f,00,\ 53,00,4f,00,46,00,54,00,20,00,4f,00,46,00,46,00,49,00,43,00,45,00,20,00,53,\ 00,45,00,52,00,56,00,45,00,52,00,53,00,5c,00,5c,00,31,00,32,00,2e,00,30,00,\ 5c,00,5c,00,42,00,69,00,6e,00,5c,00,5c,00,64,00,61,00,6e,00,6c,00,72,00,2e,\ 00,64,00,6c,00,6c,00,00,00

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office Server\12.0\Search\Setup\ContentIndexCommon\LanguageResources\Default\Finnish] &quot;Locale&quot;=dword:0000040b &quot;IsInstalled&quot;=dword:00000001 &quot;WBreakerClass&quot;=&quot;{5E01EAB0-C410-11D6-B901-00C0262DEBB2}&quot; &quot;StemmerClass&quot;=&quot;{5E01EAB1-C410-11D6-B901-00C0262DEBB2}&quot; &quot;StemmerDLLPathOverride&quot;=hex(2):25,00,50,00,52,00,4f,00,47,00,52,00,41,00,4d,\ 00,46,00,49,00,4c,00,45,00,53,00,25,00,5c,00,5c,00,4d,00,49,00,43,00,52,00,\ 4f,00,53,00,4f,00,46,00,54,00,20,00,4f,00,46,00,46,00,49,00,43,00,45,00,20,\ 00,53,00,45,00,52,00,56,00,45,00,52,00,53,00,5c,00,5c,00,31,00,32,00,2e,00,\ 30,00,5c,00,5c,00,42,00,69,00,6e,00,5c,00,5c,00,6d,00,69,00,72,00,5f,00,66,\ 00,69,00,2e,00,64,00,6c,00,6c,00,00,00 &quot;WBDLLPathOverride&quot;=hex(2):25,00,50,00,52,00,4f,00,47,00,52,00,41,00,4d,00,46,\ 00,49,00,4c,00,45,00,53,00,25,00,5c,00,5c,00,4d,00,49,00,43,00,52,00,4f,00,\ 53,00,4f,00,46,00,54,00,20,00,4f,00,46,00,46,00,49,00,43,00,45,00,20,00,53,\ 00,45,00,52,00,56,00,45,00,52,00,53,00,5c,00,5c,00,31,00,32,00,2e,00,30,00,\ 5c,00,5c,00,42,00,69,00,6e,00,5c,00,5c,00,6d,00,69,00,72,00,5f,00,66,00,69,\ 00,2e,00,64,00,6c,00,6c,00,00,00

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office Server\12.0\Search\Setup\ContentIndexCommon\LanguageResources\Default\Greek] &quot;Locale&quot;=dword:00000408 &quot;IsInstalled&quot;=dword:00000001 &quot;WBreakerClass&quot;=&quot;{1FB980F8-1764-4920-B8E5-89E341205B4A}&quot; &quot;StemmerClass&quot;=&quot;{3E9A499D-1A5C-4ca8-B948-C5D18DC466B1}&quot; &quot;StemmerDLLPathOverride&quot;=hex(2):25,00,50,00,52,00,4f,00,47,00,52,00,41,00,4d,\ 00,46,00,49,00,4c,00,45,00,53,00,25,00,5c,00,5c,00,4d,00,49,00,43,00,52,00,\ 4f,00,53,00,4f,00,46,00,54,00,20,00,4f,00,46,00,46,00,49,00,43,00,45,00,20,\ 00,53,00,45,00,52,00,56,00,45,00,52,00,53,00,5c,00,5c,00,31,00,32,00,2e,00,\ 30,00,5c,00,5c,00,42,00,69,00,6e,00,5c,00,5c,00,67,00,72,00,63,00,73,00,74,\ 00,65,00,2e,00,64,00,6c,00,6c,00,00,00 &quot;WBDLLPathOverride&quot;=hex(2):25,00,50,00,52,00,4f,00,47,00,52,00,41,00,4d,00,46,\ 00,49,00,4c,00,45,00,53,00,25,00,5c,00,5c,00,4d,00,49,00,43,00,52,00,4f,00,\ 53,00,4f,00,46,00,54,00,20,00,4f,00,46,00,46,00,49,00,43,00,45,00,20,00,53,\ 00,45,00,52,00,56,00,45,00,52,00,53,00,5c,00,5c,00,31,00,32,00,2e,00,30,00,\ 5c,00,5c,00,42,00,69,00,6e,00,5c,00,5c,00,67,00,72,00,63,00,6c,00,72,00,2e,\ 00,64,00,6c,00,6c,00,00,00

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office Server\12.0\Search\Setup\ContentIndexCommon\LanguageResources\Default\Hungarian] &quot;Locale&quot;=dword:0000040e &quot;IsInstalled&quot;=dword:00000001 &quot;WBreakerClass&quot;=&quot;{4A909E33-F333-4728-AC15-2711093AF311}&quot; &quot;StemmerClass&quot;=&quot;{C6CCE075-8536-4660-A083-1B80EEB05B27}&quot; &quot;WBDLLPathOverride&quot;=hex(2):25,00,50,00,52,00,4f,00,47,00,52,00,41,00,4d,00,46,\ 00,49,00,4c,00,45,00,53,00,25,00,5c,00,5c,00,4d,00,49,00,43,00,52,00,4f,00,\ 53,00,4f,00,46,00,54,00,20,00,4f,00,46,00,46,00,49,00,43,00,45,00,20,00,53,\ 00,45,00,52,00,56,00,45,00,52,00,53,00,5c,00,5c,00,31,00,32,00,2e,00,30,00,\ 5c,00,5c,00,42,00,69,00,6e,00,5c,00,5c,00,68,00,75,00,63,00,7a,00,6c,00,72,\ 00,2e,00,64,00,6c,00,6c,00,00,00 &quot;StemmerDLLPathOverride&quot;=hex(2):25,00,50,00,52,00,4f,00,47,00,52,00,41,00,4d,\ 00,46,00,49,00,4c,00,45,00,53,00,25,00,5c,00,5c,00,4d,00,49,00,43,00,52,00,\ 4f,00,53,00,4f,00,46,00,54,00,20,00,4f,00,46,00,46,00,49,00,43,00,45,00,20,\ 00,53,00,45,00,52,00,56,00,45,00,52,00,53,00,5c,00,5c,00,31,00,32,00,2e,00,\ 30,00,5c,00,5c,00,42,00,69,00,6e,00,5c,00,5c,00,68,00,75,00,63,00,7a,00,6c,\ 00,72,00,2e,00,64,00,6c,00,6c,00,00,00

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office Server\12.0\Search\Setup\ContentIndexCommon\LanguageResources\Default\Polish] &quot;Locale&quot;=dword:00000415 &quot;IsInstalled&quot;=dword:00000001 &quot;WBreakerClass&quot;=&quot;{CA665B09-4642-4C84-A9B7-9B8F3CD7C3F6}&quot; &quot;StemmerClass&quot;=&quot;{B8713269-2D9D-4BF5-BF40-2615D75723D8}&quot; &quot;StemmerDLLPathOverride&quot;=hex(2):25,00,50,00,52,00,4f,00,47,00,52,00,41,00,4d,\ 00,46,00,49,00,4c,00,45,00,53,00,25,00,5c,00,5c,00,4d,00,49,00,43,00,52,00,\ 4f,00,53,00,4f,00,46,00,54,00,20,00,4f,00,46,00,46,00,49,00,43,00,45,00,20,\ 00,53,00,45,00,52,00,56,00,45,00,52,00,53,00,5c,00,5c,00,31,00,32,00,2e,00,\ 30,00,5c,00,5c,00,42,00,69,00,6e,00,5c,00,5c,00,6c,00,72,00,50,00,6f,00,6c,\ 00,69,00,73,00,68,00,2e,00,64,00,6c,00,6c,00,00,00 &quot;WBDLLPathOverride&quot;=hex(2):25,00,50,00,52,00,4f,00,47,00,52,00,41,00,4d,00,46,\ 00,49,00,4c,00,45,00,53,00,25,00,5c,00,5c,00,4d,00,49,00,43,00,52,00,4f,00,\ 53,00,4f,00,46,00,54,00,20,00,4f,00,46,00,46,00,49,00,43,00,45,00,20,00,53,\ 00,45,00,52,00,56,00,45,00,52,00,53,00,5c,00,5c,00,31,00,32,00,2e,00,30,00,\ 5c,00,5c,00,42,00,69,00,6e,00,5c,00,5c,00,6c,00,72,00,50,00,6f,00,6c,00,69,\ 00,73,00,68,00,2e,00,64,00,6c,00,6c,00,00,00

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office Server\12.0\Search\Setup\ContentIndexCommon\LanguageResources\Default\Turkish] &quot;Locale&quot;=dword:0000041f &quot;IsInstalled&quot;=dword:00000001 &quot;WBreakerClass&quot;=&quot;{8DF412D1-62C7-4667-BBEC-38756576C21B}&quot; &quot;StemmerClass&quot;=&quot;{23A9C1C3-3C7A-4D2C-B894-4F286459DAD6}&quot; &quot;StemmerDLLPathOverride&quot;=hex(2):25,00,50,00,52,00,4f,00,47,00,52,00,41,00,4d,\ 00,46,00,49,00,4c,00,45,00,53,00,25,00,5c,00,5c,00,4d,00,49,00,43,00,52,00,\ 4f,00,53,00,4f,00,46,00,54,00,20,00,4f,00,46,00,46,00,49,00,43,00,45,00,20,\ 00,53,00,45,00,52,00,56,00,45,00,52,00,53,00,5c,00,5c,00,31,00,32,00,2e,00,\ 30,00,5c,00,5c,00,42,00,69,00,6e,00,5c,00,5c,00,74,00,72,00,6b,00,6c,00,72,\ 00,2e,00,64,00,6c,00,6c,00,00,00 &quot;WBDLLPathOverride&quot;=hex(2):25,00,50,00,52,00,4f,00,47,00,52,00,41,00,4d,00,46,\ 00,49,00,4c,00,45,00,53,00,25,00,5c,00,5c,00,4d,00,49,00,43,00,52,00,4f,00,\ 53,00,4f,00,46,00,54,00,20,00,4f,00,46,00,46,00,49,00,43,00,45,00,20,00,53,\ 00,45,00,52,00,56,00,45,00,52,00,53,00,5c,00,5c,00,31,00,32,00,2e,00,30,00,\ 5c,00,5c,00,42,00,69,00,6e,00,5c,00,5c,00,74,00,72,00,6b,00,6c,00,72,00,2e,\ 00,64,00,6c,00,6c,00,00,00  In Notepad, click Save As on the File menu. In the Save As dialog box, type langres.reg in the File name box, and then click Save.</li></ol>

Step 2: Run the Langres.reg file on each index server and query server
You must follow these steps on each computer that is running the SharePoint Services 2007 query server and index server in the server farm. <ol style="list-style-type: lower-alpha;"> Use an account that has administrative permissions log on to the computer.</li> Double-click the Langres.reg file that you created.

Note This step initiates the process that will set the necessary registry keys for the word breaker registration.</li> If the Open File - Security Warning dialog box appears, click Run.</li> In Registry Editor, click Yes and then click OK</li></ol>

Step 3: Verify the registry settings
Use the following table to verify that the correct values have been applied for both the WBDLLPathOverride and StemmerDLLPathOverride registry sub keys:

Czech

Danish

Finnish

Greek

Hungarian

Polish

Turkish

Step 4: Restart the OSearch service on each index server and query server
You must follow these steps on each computer that is running the SharePoint Services 2007 query server and index server in the server farm.

Important Do not use the Services MMC snap-in to stop and restart this OSearch service. The Services MMC snap-in may cause configuration information to become discarded. <ol style="list-style-type: lower-alpha;"> Use an account that has administrative permissions to log on to the computer.</li> On each index server and query server in the server farm, click Start, click Run, type cmd, and then click OK.</li> At the command prompt, type the following, and then press ENTER:

net stop osearch </li> After the Osearch service stops, type the following at the command prompt, and then press ENTER:

net start osearch

Note After you perform step 4, a message may inform you that the requested service has already been started. This message is expected because the system automatically tries to restart this service if it is not running.</li></ol>

Step 5: Perform a full crawl
<ol style="list-style-type: lower-alpha;"> Click Start, point to Administrative Tools, and then click SharePoint 3.0 Central Administration.</li> On the Central Administration page, click Shared Services Administration.</li> On the Manage this Farm's Shared Services page, click the default Shared Services Provider.</li> Under Search, click Search Settings.</li> On the Configure Search Settings page, click Content sources and crawl schedules.</li> On the Manage Content Sources page, click the menu next to Local Office SharePoint Server sites, and then click Start Full Crawl.</li></ol>

<div class="moreinformation_section">

MORE INFORMATION
A word breaker is a component that determines where the word boundaries are in the stream of characters in the query or in the document that is being crawled. A separate word breaker is required for each language that is installed on the farm. For example, the English and German languages each require a separate word breaker.

By default, word breakers and stemmers for the languages that are listed in the &quot;Determine requirements for word breakers and stemmers&quot; section on the &quot;Plan for multilingual sites&quot; document are installed on all SharePoint Server 2007 servers in the farm.

For more information about the &quot;Plan for multilingual sites&quot; document, visit the following Microsoft Web site:

http://technet2.microsoft.com/Office/f/?en-us/library/22d5dc9c-66bd-40d7-8c60-2a2a066db2241033.mspx

By default, the word breakers and stemmers for some languages are not enabled. In the rare case that you have to install a third-party word breaker and stemmer, refer to the installation instructions that are provided by the third-party word breaker and stemmer.

Additional query words: MOSS2007 MOSS 2007 SPS

Keywords: kbgraphic kbprb kbhowto KB929912

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.