instantiate records based on the record type in the search result