SaaS CMS has officially launched! Learn more now.

Best bets not working



I need to apply best bets to my site.In best bets Target content I choose commerce catalog product.While I tried to get result from beat bets by using following code getting error says "Culture is not supported".

  var results = SearchClient.Instance.UnifiedSearchFor(spaceText).ApplyBestBets().GetResult();

                var result = SearchClient.Instance.Search()

////For both cases I am getting the same error.

Exception Image

Thanks in advance.

Edited, Jun 08, 2018 11:16

Same problem if you use GetContentResult()?

Jun 08, 2018 23:47

You should always pass language to filtering queries for it to be able to handle linquistic things.
Does it work when you do:

var results = SearchClient.Instance.UnifiedSearchFor(spaceText, lang).ApplyBestBets().GetResult();
Jun 11, 2018 7:12

IContent has properties that can't be deserialized.

1. Do you want to search for all content? UnifiedSearch could be used in that case

2. Are you only interested in Catalog items? You could then search for only CatalogContentBase SearchClient.Instance.Search<CatalogContentBase>() and use GetContentResult instead of GetResult

Jun 11, 2018 8:27
* 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.