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.
Thanks in advance.
Same problem if you use GetContentResult()?
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();
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