Skip to main content

Posts

Showing posts with the label managed properties

Search Results Customization - part 1

Scenario We want to output search results in the format which is different from standard. Solution Customize search results. The easiest way to do that is to customize the output provided by Search Core Results Web part. First part of the solution is to define the output properties and second part is to customize look-and-feel. 1. Manage output properties. Go to your search results page -> Site Actions -> Edit Page -> Search Core Results Web Part -> Modify Shared Web Part: In the Results Query Options section select Selected Columns button: Copy text from the appeared Text Entry dialog into the proper XML editor. I will use Visual Studio 2008. In the Columns element create child Column elements for each property you want to output specifying the Name attribute appropriately. Name attribute should be equal to the name of a relevant managed property : Copy text from the XML editor and paste it back into the Text Entry dialog. Press OK button and then p...

Custom Managed Properties and Metadata Property Mappings

Scenario We would like to expose additional information on the search results page and to be able to search using specific properties. Solution Set up custom metadata property mappings for search. I will use the form library described here and custom search page described here . 1. Go to Shared Service Provider Settings -> Search Settings -> Metadata Property Mappings and click New Managed Property button: 2. Provide name for managed property, specify that you will provide mappings to crawled properties and tick the checkbox that you will use this mapping in scopes. I will use Business Purpose column from the my Expense Claims form library therefore I will call my managed property "VG Business Purpose". Click "Add Mapping" button: 3. In the Crawled Property Selection dialog select SharePoint category and browse for the desired metadata crawled property. Usually the crawled property name has the following format: "ows_ColumnInternalName...