Do you use Best Bets? In SharePoint 2010 and before? Probably not. Don’t get me wrong, I think the IDEA of best bets is great. It is the implementation that misses on many different fronts. SharePoint 2013 introduces a better approach for Best Bets called “Promoted Results” that is a significant step forward in providing you (as the Search Administrator or Site Collection Administrator) to create a search experience that actually helps your users find the stuff that they seek.
The biggest change to best bets is that in SharePoint 2013 they are driven by Query Rules. Query Rules enable you to create powerful (or simple) pattern matching rules to detect specific queries and then offer promoted results to the user. There is a LOT more that you can do, Promoted Results is just one example, and the reason for this post. So IF you created Best Bets in SharePoint 2010 or before you will have to “upgrade” them to 2013 (which really means recreate them from scratch).
A promoted result is either a link or a banner (in 2010 the banner was called a “Visual Best Bet” and was only available in FAST for SharePoint 2010). To begin with you need a destination link. I mean, that’s the point of the promoted result, to force a link on the user based on their query. In our case the training department gave us a file with the text and image needed for publicizing our SharePoint Training Class.
You can host the file just about anywhere, in my case I just added it to the document library on the search site. There are probably some cross domain issues involved in the iframe that will get created by the Best Bet display template. But the one tip I can give you here is this: even if it is just an HTML file, like mine is, give it an ASPX file extension. SharePoint blocks the download of HTML and the iframe will have “issues” but ASPX files appear to work fine. Aside from a bit of CSS there is nothing special about my file. Now that you have your banner file rendering correctly, just copy the URL.
The rest is easy.
Click Add Promoted Result
If you need to add an expiration date you can do that with the Publishing Options.
Click Save to commit your changes.
Return to your Search Center and execute a query that will trip your rule. In my case I use “SharePoint Search” or “SharePoint Training” or “MOSS Upgrade” all will return results and have the necessary keywords to trigger my Query Rule.
That’s it. I will tell you that I spent more time working on fitting my banner into the tiny iframe supplied by the Best Bet display template than I did on any other part of this process. I haven’t spent any time trying to change the display template for the promoted result, not yet.
Ready to start your next project with us? That’s great! Give us a call or send us an email and we will get back to you as soon as possible!