truemped/doppler — pull request #14 by drotschmann (2012-11-19 16:08:31+00:00)
Title: Give response mapper the chance to map 0 results

Previously the response mapper was not used at all when nothing could be found. The callback was simply called without the response mapper in between, using an {'error': 'not_found'} message - but this swallows facetting information and other things that are useful even when no results could be found.

Now the response mapper is being called no matter how many results are returned. The response mapper can still decide to map to the {'error': 'not_found'} message, so no functionality is lost. That said, backwards compatibility is broken.