Beginning of the highlight-search-results function