SearchHit Score for typed searches?

Vote:
 

Is there anyway to get the score of the searchhit when using typed search?

#120998
Apr 29, 2015 16:35
Vote:
 

SearchHit<> contains Score property:

var typedQuery = searchClient.Search<PageData>().GetResult();
foreach (SearchHit<PageData> hit in typedQuery.Hits)
{
    var score = hit.Score;
}
#121048
Apr 30, 2015 11:54
Vote:
 

Works like a charm, thanks!

#121903
May 20, 2015 10:34
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.