format search result