Work on search results for record grouping