Refactored search result parser