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?
I got this answer from Basho engeneer, Sean C.:
both options worked for me!