---
title: Promote Best Bets in search results
slug: cms-12/docs/best-bets
docTags: 
createdAt: 2026-08-10T15:55:53.000Z
---

Best Bets display at the top of search results because it has a higher boost weight. See also [Promote content with best bets](docId\:RDHBaqBLSfzgMSk2-1wXn) in the user section.

## Apply Best Bets

Use `ISearch` or `ITypeSearch` in the `EPiServer.Find` namespace to apply Best Bets to the search results, as shown in the following examples.

`GetContentResult()` does not return external best bets because it only returns `IContent`, which external best bets do not. External best bets are of type `ExternalUrlBestBets`. To work around this, implement your own `GetContentResult()`. Do a `.select(x => x.ContentLink).GetResult()`. Then, load the content using that content reference.

### Unified Search

```csharp
var results = client.UnifiedSearchFor("Beethoven").ApplyBestBets().GetResult();
```

You can apply an overload that accepts a boost index (`ApplyBestBets(double? boost)`), which affects the influence of a matching Best Bets on the search result score (default is 1000).

```csharp
var results = client.UnifiedSearchFor("Beethoven").ApplyBestBets(200).GetResult();
```

### Typed Search

You can also apply Best Bets to arbitrary types you have indexed, as shown in the following example.

```csharp
var results = client.Search<Contact>For("Beethoven").ApplyBestBets().GetResult();
```

## Style Best Bets search results

To style Best Bets search results, first use `IsBestBet()` to see whether a search hit is a Best Bet. Then, use `HasBestBetStyle()` to see whether the Best Best is showing its style. `IsBestBet()` and `HasBestBetStyle()` are available for `UnifiedSearchHit`.

```csharp
if(hit.Document.IsBestBet && hit.Document.HasBestBetStyle) { ... }
```

For `HasBestBetStyle()` to return true, you must select the **Show the best bet with its own style** checkbox on the Optimizely Search & Navigation admin UI. Otherwise, the function returns false, indicating that it did not add the style to the listing.
