I have a search query where we use UnifiedSearch and best bets. So on the search page I would like to display the best bet descripton if it's a best bet hit. On the SearchHit I can se if it's a best bet and styling but how do I get the description text?
Per, Have you seen this page & header? https://world.episerver.com/documentation/developer-guides/find/NET-Client-API/searching/Best-Bets/ > Styling Best Bet search results ?
Yes I have read it but couldn't find any info. It seems that it should work out of the box with just using the content in the SearchHit.Excerpt. I have REST-Method where I do basically the same search and there I can se the best bet description on the response. Weird but maybe we manipulate the searchhit somewhere but it doesn't seem that way. I will investigate further..
We had some specialhandling for the excerpt causing it to not display the best bet. So Best bets is handled automatically and title and excerpt from the best bet is displayed through the normal properties on the UnifiedSearchHit