SharePoint 2010 Search, Best Bets, and You

Hello all;

After having a conversation with a fellow SharePoint engineer about search it prompted me to gain a further understanding of some of it’s aspects. While I couldn’t possibly hope to explain everything in SharePoint search I did want to focus on the ‘best bets’ functionality in this post.

Best bets essentially allows you to inject your chosen content at the top of search queries for certain keywords. As an example on my test bed site when ever someone types ‘javier’ I want to return three key items at the top. These three items will be:

  1. link to my twitter feed link
  2. link to my technical blog
  3. link to my Linkedin page

Now, this is an example, but you can use this in a variety of other situations. For example for your companies’ SharePoint search you can use a keyword like ‘payroll’ and have it return links to your payroll system, or information to your payroll submission forms.

Create a Search Center

To leverage best bets we must use a search center. That is pretty easy. A search center in essence is a  subsite of your site. Click on Site Actions->New Site->Search->Basic Search Center. Lets fill it our with the following information, and select create. Take a look at the more options button if you want to modify it from the default settings.

Great once you select create it puts into your search center. If we try and search for the term ‘javier’ we get results, but not our best bests. Lets navigate back to our parent site.

Creating Best Bets

From here lets go back to our site settings. Remember this is our parent site and not the new site setting for the search center we just created. click Site Actions->Site Collection Administration->Search keywords->Add Keyword. I want my key word to be ‘javier’ but as we can see you can fill in synonyms as you need them. Optionally, you can add some type of definition to appear with the keyword result. In this case I’ll use ‘javi’ my nickname as a synonym.

Now that your key word is set lets create the actual best bets. Click on ‘Add Best Bet’.

Enter your information, and click OK. Let repeat that cycle to enter in the all the best bests we want, and in the order we want. If you take a look at the rest of the edit key word screen you will notice other options to add a contact and publishing options. Press OK when completed.

Lets test it out. I’ll navigate to your search center subsite and enter in my new keyword ‘javier’.

Great! now we have best bet set up and returning the information we want for our users. Almost complete but still not quite there…

Completing the Configuration

Lets test the search from our parent site.

hmm… as we can see no best bets here. The key is the URL.

Compare that to a search with in our search center subsite with the same exact term.

we need to link our parent site search bar to default to the new search center subsite. In the parent site click on site actions-> site settings-> search setings. Select ‘Enable custom scopes’ and fill in the appropraite link to your subsite. In my case that was ‘/sites/test/searchcenter’. I do not like to use full URL hard links because this offers the maximum versatility, and SharePoint is smart enough to add the appropriate completed link. In addition I chose, ‘Do not show scopes dropdown, and default to target results page’ under ‘specify the dropdown mode for Search Boxes:’. We will go over custom scopes later. click OK.

Now if we type in ‘javier’ from the parent’s search box it will return the proper results WITH the best bets.

Fantastic! Now, remember best bets is not available to SharePoint Foundation, but you can get it SharePoint 2010 Search Server Express, SharePoint 2010 Standard, and SharePoint 2010 Enterprise.


About the Author

12 thoughts on “SharePoint 2010 Search, Best Bets, and You

Leave a Reply

%d bloggers like this: