Sunday, November 19, 2006

Search Result Customization

Want to know the different ways in which you want to customize the search results page in MOSS 2007.

The following steps can be done on creating a site with the template "Search Center With Tabs".

The following is a link from Liam's Blog. Nice work Liam.

http://www.sharepointblogs.com/helloitsliam/archive/2006/07/18/9359.aspx

Search Customization - MOSS 2007

A note below from a collegue of mine at Microsoft.

This is basically to add custom properties in content types to the Advanced Search feature

Quick Steps to Advanced Search Customization in MOSS 2007

1. Create your content type, custom list, site columns using Site Settings

a. In our solution, this is an Infopath form that is being published as a site template

2. Schedule and Run a full scan. This will ensure that the newly defined properties will be included in the index as Crawled Properties.

3. These Crawled Properties have to be mapped to Managed Properties

4. Using the SSP administration Search Settings page, add managed properties

5. Now you are set to customize the advanced search webpart.

6. Edit the Advanced Search Webpart

7. Go to properties

8. Copy the Properties XML

9. Paste it into a user friendly XML Editor

10. Create PropertyDefs to define your custom properties

11. Create a new ResultSet

12. Include PropertyRefs to the resultset. These refer to the names of the propertydefs that you created.

13. Tasks 10-12 might seem confusing, but its fairly simple once you open the properties xml and understand the schema.

14. I had to remove some resultsets that come by default. I suspected that the size of the xml was overshooting the max size. So even if the xml seems well formed, the advanced webpart might return with error. Since I had less time, I resorted to cut some of the unwanted text. J

15. Hope these work for you.