Friday, September 4, 2009

Optimizing SharePoint search using Managed Properties

I would like to discuss about Optimizing SharePoint search using Managed Properties by configuring the Properties to appear in the Advanced Search. Here are the steps to create Managed Properties and configure it in MOSS 2007 Advanced Search.

1. Go to the central administration -> Shared Services



2. Under the Search Menu, click on Search Settings.

3. In the Configure Search Settings page, click on Metadata Property Mappings.



4. In the Metadata Property Mappings page, click on New Managed Property



5. Enter the Property Name and add the crawled properties that you want to add by clicking on the Add mappings button.


6. Click OK.

Once you have created the new custom managed property, go to the Advanced Search page.
1. Click on Site Settings and then on "Edit Page"
2. Click on Edit Menu of the Webpart and then Select "Modify Shared Web part"
In the Advanced Search Box Pane, click on the Properties Menu and then select the content in the Properties Text Box. In order that your Managed Properties appears in the Properties lists, you need to make changes in the XML file content.



The XML File in Properties has the following structure:
  • Find the string:
  • <PropertyDef Name="ModifiedBy" DataType="text"
    DisplayName="Last Modified By"/>
  • Add the following String below it:
    <PropertyDef Name="MyProperty" DataType="text" DisplayName="MyProperty"/>
  • MyProperty denotes the managed property that was created in Search Settings in the Shared Services.
  • Find the ResultType node:
    <ResultType DisplayName="All Results" Name="default">
  • Add the following string below this:
    <PropertyRef Name="MyProperty" />
  • Now you can click on Apply and OK to close the pane.

The property "MyProperty" will appear in the Property list box when All Results is selected.

No comments: