IT tutorials
 
Applications Server
 

SharePoint 2010 : Customizing Search Pages (part 4) - Customizing Search Results Metadata

12/22/2012 11:06:04 AM
- Free product key for windows 10
- Free Product Key for Microsoft office 365
- Malwarebytes Premium 3.7.1 Serial Keys (LifeTime) 2019

5. Customizing Search Results Metadata

It is often necessary to change or remove the metadata returned with search results. For example, an organization might want to change or remove the property Author and replace it with Department on their Internet-facing Search Center site. This could be especially important when information about individual corporate employees should not be searchable metadata.


Note:

In this example, you should assume that the metadata exists for Department and that a managed property has been created and associated with the metadata.


It is not necessary to delete or modify the managed property being displayed if all you need is to remove it or replace it with another managed property. To change the managed properties retrieved by the Core Results Web Part, use the following steps.

  1. Open the search results page in edit mode.

  2. Select Edit Web Part for the Search Core Results Web Part.

  3. Expand the Display Properties section as shown in Figure 13-37 above.

  4. Clear the Use Location Visualization check box so the Web Part will use your customizations instead of the configuration of the Federated Location Definition at the search application level.

  5. Copy the entire XML string contained in the Fetched Properties text box into your favorite XML editor. This string defines much of the functionality of the Web Part. These managed properties are sent to the query manager as managed properties to be retrieved for each search result in the result set. The Fetched Properties code in the Core Results and Search Action Links Web Parts is as follows.

    <Columns>
      <Column Name="WorkId" />
      <Column Name="Rank" />
      <Column Name="Title" />
      <Column Name="Author" />
      <Column Name="Size" />
      <Column Name="Path" />
      <Column Name="Description" />
      <Column Name="Write" />
      <Column Name="SiteName" />
      <Column Name="CollapsingStatus" />
      <Column Name="HitHighlightedSummary" />
      <Column Name="HitHighlightedProperties" />
      <Column Name="ContentClass" />
      <Column Name="IsDocument" />
      <Column Name="PictureThumbnailURL" />
      <Column Name="PopularSocialTags" />
      <Column Name="PictureWidth" />
      <Column Name="PictureHeight" />
      <Column Name="DatePictureTaken" />
      <Column Name="ServerRedirectedURL" />
    </Columns>
    
    					  

  6. Locate the managed property and remove it from the string. In the example above, you will remove <Column Name=“Author” />.

  7. Add the managed property that will replace Author. For the example above, you would add <Column Name=“Department” />.

  8. Replace the default Fetched Properties code with your modified code.

  9. After you add managed properties to this list, you must also modify the XSL to specify how the new property is to be displayed. There are two options for modifying the style sheet for the Web Part. In this section, you can click the XSL Editor button to expose the XSL code within the Web Part. You will probably find it easier to copy the code into your favorite editor for modification and then paste the modified code back into the editor to save it. In the Miscellaneous section, you can enter the URL for an external style sheet used by one or more Web Parts.

  10. Test the new search criteria.

 
Others
 
- SharePoint 2010 : Customizing Search Pages (part 3) - Customizing the Results Presentation
- SharePoint 2010 : Customizing Search Pages (part 2) - Advanced Search Pages
- SharePoint 2010 : Customizing Search Pages (part 1) - Query Pages, Search Box Web Part
- Microsoft Dynamic GP 2010 : Dynamics GP System - General Ledger Chart of Accounts, Master record IDs and names
- Microsoft Dynamic GP 2010 : Dynamics GP System - Companies in Dynamics GP, Integration with other systems
- Exchange Server 2010 : The Exchange Control Panel (ECP)
- Exchange Server 2010 : The Exchange Management Console
- Microsoft Lync Server 2010 : SQL 2008 R2 Backup and Restore
- Microsoft Lync Server 2010 : Installing SQL 2008 R2
- Microsoft Dynamics Sure Step 2010 : Quality Management and Optimization (part 2) - The Sure Step Optimization Offerings Roadmap
 
 
Top 10
 
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Finding containers and lists in Visio (part 2) - Wireframes,Legends
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Finding containers and lists in Visio (part 1) - Swimlanes
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Formatting and sizing lists
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Adding shapes to lists
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Sizing containers
- Microsoft Access 2010 : Control Properties and Why to Use Them (part 3) - The Other Properties of a Control
- Microsoft Access 2010 : Control Properties and Why to Use Them (part 2) - The Data Properties of a Control
- Microsoft Access 2010 : Control Properties and Why to Use Them (part 1) - The Format Properties of a Control
- Microsoft Access 2010 : Form Properties and Why Should You Use Them - Working with the Properties Window
- Microsoft Visio 2013 : Using the Organization Chart Wizard with new data
Technology FAQ
- Is possible to just to use a wireless router to extend wireless access to wireless access points?
- Ruby - Insert Struct to MySql
- how to find my Symantec pcAnywhere serial number
- About direct X / Open GL issue
- How to determine eclipse version?
- What SAN cert Exchange 2010 for UM, OA?
- How do I populate a SQL Express table from Excel file?
- code for express check out with Paypal.
- Problem with Templated User Control
- ShellExecute SW_HIDE
programming4us programming4us