It seems like the spec of members of a group is available as fourth return value:
local role, class, _, spec = C_LFGList.GetSearchResultMemberInfo(resultID, i)
We should show the spec in the tooltip next to the class name or instead of the class name.