socialcast/elastic_searchable — pull request #11 by cheey (2011-12-13 18:37:21+00:00)
Title: Allow a block to passed with a call to search

Allow a block to passed with a call to search. Search calls the block with the elasticsearch response hash. The motivation is to allow the caller to do additional processing of the response hash if needed. An example is to extract the hit count from the response when :explain is true.

httparty 0.6.1 has an issue with dealing with unicode code when decoding json which is possible in the json being returned by elasticsearch, This problem appears to be fixed in 0.8.1.