Riak search queries via the java client

Oved Machlev omachlev at interwise.com
Sun Aug 26 03:24:21 EDT 2012


Hi,
I am trying to perform queries using the OR operator as following:
  MapReduceResult result = riakClient.
            mapReduce("some_bucket", "Name:c1 OR c2").
            addMapPhase(new NamedJSFunction("Riak.mapValuesJson"), true).
            execute();

I only get the 1st object in the query (where name='c1'). If I change the order of the query (i.e. Name:c2 OR c1) again I get only the first object in query (where name='c2').
is the OR operator (and other query operators) supported in the java client?



Thanks,
Oved Machlev
____________________________
Get AT&T Connect for Mobile now!
Android<https://play.google.com/store/apps/details?id=com.att.connect> | iPhone<http://itunes.apple.com/us/app/at-t-connect-mobile/id318798264?mt=8> | iPad<http://itunes.apple.com/il/app/at-t-connect-mobile-application/id459888209?mt=8> | BB<http://downloads.uc.att.com/BB/Public/Latest/En/KB/att_connect.jad>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.basho.com/pipermail/riak-users_lists.basho.com/attachments/20120826/3e89f249/attachment.html>


More information about the riak-users mailing list