SaaS CMS has officially launched! Learn more now.

Best bets not working

Vote:
 

Hi,

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(spaceText)
                                .ApplyBestBets().GetResult();

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

Exception Image

Thanks in advance.

#193946
Edited, Jun 08, 2018 11:16
Vote:
 

Same problem if you use GetContentResult()?

#193976
Jun 08, 2018 23:47
Vote:
 

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();
#193985
Jun 11, 2018 7:12
Vote:
 

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

#193988
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.