Fix permission for map-reduce/search
Fix permission for map-reduce/search

The case statement was erroneously re-using the function parameter
`_Query` as an ignored variable in two of the case clases.  The
`_Query` function parameter and the `_Query` in the search tuple are
two different things and thus will never match.

andytill/riak_kv