This example will show, how metadata mapping is added to the search settings of Office SharePoint Server 2007 (or Search Server 2008), and how the Advanced Search-webpart must be modified, to search for this new mapping.List in this exampleDocument library to save publications.clip_image002Visibility of metadata in search configurationTo map metadata in the search configuration of MOSS (Shared Service Provider) the following must be done:· The column you want to map must contain data.· A full crawl must be done.Add a metadata property mappingYou have two options to enter the mask, to add a new metadata property mapping:1. In the Shared Service Provider click “Search settings” in the Search- section. Here click the link “Metadata property mappings”.clip_image0042. In the Shared Service Provider click “Search administration” in the Search- section. Here click “Metadata properties” in the Quicklaunch.clip_image006You will get a list of all mappings registered for search.Click <New Managed Property>.clip_image008First you have to enter a name for the property. This name should be in line with the crawled property.In the “Mappings to crawled properties”-section click <Add mapping>. This will open a dialog, where you can select the matching property.For the columns used in lists and libraries use “SharePoint” as the category.clip_image010When you know the name of the column you want to use, you can enter its name in the property name-field and click <Find>.clip_image012It’s also possible to navigate through the properties using the arrows.Select the property you want to use and click <OK>.clip_image014The property is added to the mappings.Click <OK> to save the new property mapping.When you edit this mapping, you will see, that there is no item found with this property.clip_image016You first have to run a full crawl.Use property in the property restrictionsIn the advanced search in the Search Center it is possible to explicitly search by a mapped property.clip_image018Within the properties of the webpart it is possible to add our new property mapping to this list.First enter the edit-mode of the webpart page. For the “Advanced Search Box” click Edit > Modify Shared Web Part.Open the Properties-section and select the text in the Properties-field. The content of this field is an xml-structure, which defines the properties to use. It is recommended to use an xml- editor, to modify the content. In this example we use Visual Studio 2005.After pasting the content of the clipboard to a new xml-file in Visual Studio we first should reformat the content. To do this in Visual Studio run Edit > Advanced > Format Document.When scrolling down, you may find a node named “PropertyDefs”. That’s where the possible properties for the advanced search are defined.clip_image020Add a new PropertyDef-node for our property. Use the same name in the name-attribute as when adding the new property mapping.clip_image022Scroll a little bit down and you will see a ResultTypes-node defining the several result types for the advanced search.In the result type named “All Results” add a new PropertyDef-node, which references our property definition in the PropertyDefs-node.clip_image024Save the file and copy its content into the clipboard. Now go back to the webpart-page, where the “Advanced Search Box” is placed. It should be in edit-mode. Paste the content of the clipboard into the Properties-field in the Properties-section. Than, leave the webpart-properties by clicking the OK-button. Then, publish and reload the page.When opening the combobox with the properties, you will see our property at the end of the list.clip_image026