I know it's possible to feed Riak map/reduce job with results of Search. I have a bucket of items on which I want to search. Then, I need to process the top, let's say 100, with map/reduce. The naive solution is searching for the keyword, applying limit and starting a new map/reduce job with a set of 100 keys.
However, I would like to do the whole job in Riak - kick off map/reduce directly with search. I currently use the map/reduce init described here:
"inputs": {
"bucket":"mybucket",
"query":"foo OR bar"
}
Is there a way to provide a limit so that the search does not return all keys, but just the top matches for the search? Something like this:
"inputs": {
"bucket":"mybucket",
"query":"foo OR bar",
"limit": 10
}