Transform search result into array of hashes