sunspot/sunspot — pull request #279 by benmoss (2012-09-01 22:33:13+00:00)
Title: Return an Enumerator from each_hit_with_result if no block is given

This is standard enumerable behavior from the stdlib. When not given a block, enumerables return an Enumerator so that further enumerator methods like with_index or with_object can be chained on. I recently had a use case where we needed to add an index to the iteration and we had to do it manually rather than being able to chain a with_index.