I am trying to run the following map/reduce query on my riak database:
curl -XPOST http://localhost:8098/mapred \
-H 'Content-Type: application/json' \
-d '{"inputs":{"bucket":"my_customers","key_filters":[["eq","sales+p3@dummy3.gr"]]},"query":[{"map":{"language":"javascript","source":"function(v) {var results = []; results.push(v); return results;}"}}]}'
The bucket my_customers
contains the value with key sales+p3@dummy3.gr
but the result returned from this map/reduce query is an empty array.
If I change the query to search for another value with key sales@dummy.gr
, which exists too, it returns the result without problem.
I suspect that the problem is around the character +
which is part of the key.
Thanks in advance.