Unable to select variation as a target for Best Bets

Vote:
 

Does anyone know why when creating a Best Bet and selecting Commerce content only categories and products can be selected? When I select a variation, the OK button is disabled.

We are searching for variations so Best Bets should be applied for those. When selecting a product, we do not get search results (as we are searching for variation).

Here is the code for the search:

var request = _client.Search<VariationContent>(GetLanguage())
                .For(query)
                .InFields(
                    x => x.Code,
                    x => x.DisplayName,
                    x => x.DisplayDescription
                    )
                .UsingSynonyms()
                .UsingAutoBoost()
                .ApplyBestBets()
                .Skip((page - 1) * pageSize)
                .Take(pageSize)
                .FilterForVisitor();

And here is the screenshot of the best bets target selection when a variation is selected - notice "OK" button is disabled:

And according to documentation, it should be possible:

https://webhelp.episerver.com/latest/en/find/best-bets.htm

#205929
Edited, Jul 29, 2019 13:48
Vote:
 

Does the variation have a view? Not sure if it works like that, but can imagine you can only select things that can actually be displayed.

#205931
Jul 29, 2019 15:46
Vote:
 

My variation does not have a view. Thanks, Jeroen! 

Now the issue to solve is how to search for variants when only product is selected for the best bet.

#205945
Jul 29, 2019 19:24
Vote:
 

Or have a controller/view for the variant that displays the product with the variant selected ;)

#205956
Jul 30, 2019 9:24
This topic was created over six months ago and has been resolved. If you have a similar question, please create a new topic and refer to this one.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.