Display a result dialog when the search is finished.