display(HTML('<h4>Top Answers</h4>'))
for index,search_results in agg_search_results.items():
if '@search_answers' in search_results:
for result in search_results['@search.answers']:
if result['score'] > 0.5: # Show answers that are at least 50% of the max possible score=1
display(HTML('<h5>' + 'Answer - score: ' + str(round(result['score'],2)) + '</h5>'))
display(HTML(result['text']))
Needs to be changed to