Using visual best bets is a very simple way to make your best bets stand out, if you don’t have Fast Server setup on your SharePoint environment this is not available out of the box. If you have FAST this is a good article on how to setup visual best bets. For those of us without FAST here is how I did it.
To show best bests on the search results page you will either need to use a search center or create a custom search page and add the best bets web part to it. Here is what best bets look like out of the box.
Visual Best Bets without FAST
- Put the page in edit mode and then edit the best bets web part
- Click on the XSL Editor button
- You can either or the little editor window or copy the code into an editor like Dreamweaver or Notepad
- On line 45 you will see this code
- We are going to change the code to render the description field as HTML and not just plain text. Change the code on line 45 to this:
<xsl:value-of disable-output-escaping="yes" select="Description"/>
- Save the changes to the web part and save the page.
- Now we need to setup our best bets to show images. If you dont already have best bets setup you can follow the steps outlined here
- Once you have a best bet setup edit it and in the description use HTML to show the image you want to display.
<img src="URLofImage" alt="description of image"/>
- Save the best bet and run a test search.
Visual best bets not only look better than the other results but can allow you to show more detailed information about the result without them having to click. Using this same solution you could include other HTML to show multiple image, the top pages from a site or other information useful to the person searching.