<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 12 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
        {mso-style-priority:99;
        mso-style-link:"Balloon Text Char";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:8.0pt;
        font-family:"Tahoma","sans-serif";}
span.EmailStyle17
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
span.BalloonTextChar
        {mso-style-name:"Balloon Text Char";
        mso-style-priority:99;
        mso-style-link:"Balloon Text";
        font-family:"Tahoma","sans-serif";}
.MsoChpDefault
        {mso-style-type:export-only;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 90.0pt 72.0pt 90.0pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Thanks Engel!<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">I got the same answer from Sean Cribbs, and tried it successfully yesterday – both options are working!<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#8064A2"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#8064A2">Thanks</span><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#4F81BD">,<o:p></o:p></span></p>
<p class="MsoNormal"><b><i><span style="font-family:"Calibri","sans-serif";color:#F79646">Oved Machlev<o:p></o:p></span></i></b></p>
<p class="MsoNormal"><b><i><span style="font-size:10.0pt;font-family:"Calibri","sans-serif";color:#8064A2">____________________________<o:p></o:p></span></i></b></p>
<p class="MsoNormal"><b><i><span style="font-size:10.0pt;font-family:"Calibri","sans-serif";color:#5F497A">Get
</span></i></b><b><i><span style="font-size:10.0pt;font-family:"Calibri","sans-serif";color:#E36C0A">AT&T Connect for Mobile</span></i></b><b><i><span style="font-size:10.0pt;font-family:"Calibri","sans-serif";color:#1F497D">
</span></i></b><b><i><span style="font-size:10.0pt;font-family:"Calibri","sans-serif";color:#5F497A">now!</span></i></b><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p></o:p></span></p>
<p class="MsoNormal"><i><span style="font-size:10.0pt;font-family:"Calibri","sans-serif";color:#7030A0"><a href="https://play.google.com/store/apps/details?id=com.att.connect">Android</a> |
<a href="http://itunes.apple.com/us/app/at-t-connect-mobile/id318798264?mt=8"><span style="color:#7030A0">iPhone</span></a> |
<a href="http://itunes.apple.com/il/app/at-t-connect-mobile-application/id459888209?mt=8">
<span style="color:#7030A0">iPad</span></a> | <a href="http://downloads.uc.att.com/BB/Public/Latest/En/KB/att_connect.jad">
<span style="color:#7030A0">BB</span></a></span></i><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">From:</span></b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> riak-users-bounces@lists.basho.com [mailto:riak-users-bounces@lists.basho.com]
<b>On Behalf Of </b>Engel Sanchez<br>
<b>Sent:</b> Sunday, August 26, 2012 20:12<br>
<b>To:</b> riak-users@lists.basho.com<br>
<b>Subject:</b> Re:Riak search queries via the java client<o:p></o:p></span></p>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Hi Oved. If Riak search is anything like Lucene search, the correct way to query that would be:<o:p></o:p></p>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">Name:c1 OR Name:c2<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">Did you try that?  I believe this also works in lucene: Name:(c1 OR c2)<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">Sorry to answer without actually trying this on Riak, just from my Lucene experience.  But it's worth a try. Any attribute without a prefix is interpreted as that value in the default search field.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">Cheers<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><br>
Date: Sun, 26 Aug 2012 07:24:21 +0000<o:p></o:p></p>
<div>
<blockquote style="border:none;border-right:solid #CCCCCC 1.0pt;padding:0cm 0cm 0cm 6.0pt;margin-left:4.8pt;margin-right:0cm">
<p class="MsoNormal" style="margin-bottom:12.0pt">From: Oved Machlev <<a href="mailto:omachlev@interwise.com">omachlev@interwise.com</a>><br>
To: "<a href="mailto:riak-users@lists.basho.com">riak-users@lists.basho.com</a>" <<a href="mailto:riak-users@lists.basho.com">riak-users@lists.basho.com</a>><br>
Subject: Riak search queries via the java client<br>
Message-ID:<br>
        <<a href="mailto:7F9AB8052E563043BF5218BB9ADE257F365EE158@ISRTLVEXMX2.interwise.com">7F9AB8052E563043BF5218BB9ADE257F365EE158@ISRTLVEXMX2.interwise.com</a>><br>
Content-Type: text/plain; charset="us-ascii"<br>
<br>
Hi,<br>
I am trying to perform queries using the OR operator as following:<br>
  MapReduceResult result = riakClient.<br>
            mapReduce("some_bucket", "Name:c1 OR c2").<br>
            addMapPhase(new NamedJSFunction("Riak.mapValuesJson"), true).<br>
            execute();<br>
<br>
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').<br>
is the OR operator (and other query operators) supported in the java client?<br>
<br>
<br>
<br>
Thanks,<br>
Oved Machlev<br>
____________________________<br>
Get AT&T Connect for Mobile now!<br>
Android<<a href="https://play.google.com/store/apps/details?id=com.att.connect" target="_blank">https://play.google.com/store/apps/details?id=com.att.connect</a>> | iPhone<<a href="http://itunes.apple.com/us/app/at-t-connect-mobile/id318798264?mt=8" target="_blank">http://itunes.apple.com/us/app/at-t-connect-mobile/id318798264?mt=8</a>>
 | iPad<<a href="http://itunes.apple.com/il/app/at-t-connect-mobile-application/id459888209?mt=8" target="_blank">http://itunes.apple.com/il/app/at-t-connect-mobile-application/id459888209?mt=8</a>> | BB<<a href="http://downloads.uc.att.com/BB/Public/Latest/En/KB/att_connect.jad" target="_blank">http://downloads.uc.att.com/BB/Public/Latest/En/KB/att_connect.jad</a>><o:p></o:p></p>
</blockquote>
</div>
</div>
</div>
</body>
</html>