Microsoft KB Archive/289652

= How to Modify the Search Thesaurus in SharePoint Portal Server =

Article ID: 289652

Article Last Modified on 2/23/2007

-

APPLIES TO


 * Microsoft SharePoint Portal Server 2001

-



This article was previously published under Q289652



SUMMARY
SharePoint Portal Server contains thesaurus files that you can configure for each language that the Search feature supports. When you configure these thesaurus files, you can specify synonyms for words so that the Search feature automatically replaces words in a query with other words that you specify. This article describes how to modify the thesaurus files to customize your searches.



MORE INFORMATION
The Search feature thesaurus files that are installed with SharePoint Portal Server are Unicode Extensible Markup Language (XML) files that you can modify by using a text editor. By default, these files are located in the following folder, where  is the drive on which you installed SharePoint Portal Server:



The thesaurus file names use the format TS .xml, where the  is the three-letter language code. (For example, the English (United States) version of the thesaurus is TSenu.xml.)

Thesaurus File Entry Types
You can make two types of entries in the thesaurus files: replacement sets and expansion sets.

Replacement Sets
In a replacement set, you can specify patterns that you want the search to replace with substitution sets. For example, you can have the search replace &quot;Win2K&quot; with &quot;Windows 2000&quot; or &quot;Windows NT.&quot; In this case, if you query for &quot;Win2K,&quot; the documents in the return set contain the words &quot;Windows 2000&quot; or &quot;Windows NT.&quot;

Enclose replacement sets in tags. Enclose each pattern in tags, and enclose substitutions in tags.

For example: Win2K Windows 2000 Windows NT

Expansion Sets
In expansion sets, you can specify substitutions that are synonyms of each other. Enclose expansion sets in tags. Enclose each synonym in tags; do not use tags. When you query for one word that is in the set, the search expands the query to include all the synonyms that you specify.

For example: developer code writer programmer In this example, if you query for &quot;developer,&quot; &quot;code writer,&quot; or &quot;programmer,&quot; the documents in the return set contain any of the matches.

Substitution Weights
You can also apply weights to each substitution entry. Apply a value between 0 and 1 to give higher weight to certain words in your substitution set relative to other words in that set.

For example: Internet Explorer IE IE5

Stemming Entries
You can specify stemming in pattern and substitution entries by adding two asterisks (**) to the end of the string. When you do this, the Search feature also matches the stemmed variants of the string and returns all the documents that contain any of the variants.

For example: run** jog** In this example, if you query for documents that contain the word &quot;run,&quot; the documents in the return set contain the word &quot;run,&quot; &quot;running,&quot; &quot;jog,&quot; &quot;jogging,&quot; &quot;jogs,&quot; &quot;runs,&quot; or &quot;ran,&quot; and others.

Additional query words: sps

Keywords: kbinfo KB289652

-

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

© Microsoft Corporation. All rights reserved.