Adds result class and each doc returned from api instantiated as a result.