Riak search queries via the java client

2012-08-26 Thread Oved Machlev
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 que

Re: Riak search. Different results (XML - JSON)

2012-08-26 Thread Vladimir Shapovalov
Hey Olaf, Thanks for the answer. Yep, I know, it's JSON compliant. The question is, why the unicode escaped sequences appear only in case of searching and retrieveing in JSON? This is not the case in XML output. If I just get the same key directly in JSON, the unicode chars are NOT escaped. Che

Re:Riak search queries via the java client

2012-08-26 Thread Engel Sanchez
Hi Oved. If Riak search is anything like Lucene search, the correct way to query that would be: Name:c1 OR Name:c2 Did you try that? I believe this also works in lucene: Name:(c1 OR c2) Sorry to answer without actually trying this on Riak, just from my Lucene experience. But it's worth a try.

RE: Re:Riak search queries via the java client

2012-08-26 Thread Oved Machlev
Thanks Engel! I got the same answer from Sean Cribbs, and tried it successfully yesterday - both options are working! Thanks, Oved Machlev Get AT&T Connect for Mobile now! Android | iPhone