Return-Path: Delivered-To: apmail-lucene-solr-user-archive@minotaur.apache.org Received: (qmail 59209 invoked from network); 27 May 2010 22:37:55 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 27 May 2010 22:37:55 -0000 Received: (qmail 5048 invoked by uid 500); 27 May 2010 22:37:53 -0000 Delivered-To: apmail-lucene-solr-user-archive@lucene.apache.org Received: (qmail 4987 invoked by uid 500); 27 May 2010 22:37:53 -0000 Mailing-List: contact solr-user-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: solr-user@lucene.apache.org Delivered-To: mailing list solr-user@lucene.apache.org Received: (qmail 4978 invoked by uid 99); 27 May 2010 22:37:53 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 27 May 2010 22:37:53 +0000 X-ASF-Spam-Status: No, hits=1.0 required=10.0 tests=AWL,FREEMAIL_FROM,HTML_MESSAGE,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of efriwp@gmail.com designates 209.85.161.48 as permitted sender) Received: from [209.85.161.48] (HELO mail-fx0-f48.google.com) (209.85.161.48) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 27 May 2010 22:37:47 +0000 Received: by fxm12 with SMTP id 12so549518fxm.35 for ; Thu, 27 May 2010 15:37:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:mime-version:received:in-reply-to :references:from:date:message-id:subject:to:content-type; bh=dWUPpbZ3tE9EGyKx70dI+Q679bZEvktoYNkIpUDKAn0=; b=Hks1Pu/e3SQ6IcCke26iEVgcZNMht+c2ZB07GlM59NP3012kK/7F6d3nq56bEzf7zK xlt9yNDffxOlUGtzKKF0dKZsXN6IaBlwXo8cQ5+/GQ5CKSliv6Y3IMrNHHbIrThzHyHn eto1OSE/zPNNO8x94LbCxFihFpM+nXQY4UTqg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; b=YFj4orDpEaqPcKdvexaFXcAJ7PPwPikgx8isQ2u0amtqB1T0Cw+JjVr1WKM2yk93mn Ye6dG8OadHSKizy/WFOng2gSh/0XwWLNl8ueYgPsgU8q8+h7CnICDT9pnvqv1iLK5hxv FBX+lXunHB6XCcGFvQAs4BuH/1lPXskFGUFWM= Received: by 10.239.186.129 with SMTP id g1mr934310hbh.181.1274999845635; Thu, 27 May 2010 15:37:25 -0700 (PDT) MIME-Version: 1.0 Received: by 10.239.164.137 with HTTP; Thu, 27 May 2010 15:37:05 -0700 (PDT) In-Reply-To: <515603.7295.qm@web52907.mail.re2.yahoo.com> References: <515603.7295.qm@web52907.mail.re2.yahoo.com> From: "efriwp@gmail.com" Date: Thu, 27 May 2010 18:37:05 -0400 Message-ID: Subject: Re: Does SOLR Allow q= (A or B) AND (C or D)? To: solr-user@lucene.apache.org Content-Type: multipart/alternative; boundary=001485f274b0e3451904879b0857 --001485f274b0e3451904879b0857 Content-Type: text/plain; charset=ISO-8859-1 Thank you. That seems to be working well, except when I included a wild card for any of the terms, the wildcard term isn't being found out. My searches are actually: q=+(A A*) +(C C*)&q.op=OR When I do a regular search on "A*" or "C*" I get matches but not in the context of the above query. The ability to use wildcards seems to get lost. This is all for the purposes of a "live search" in which we return matches as the user types, thus the wildcard. A and C represent two different terms a user has typed in the search box (where we are providing the live-search results). thanks Brad On Thu, May 27, 2010 at 5:47 PM, Ahmet Arslan wrote: > > > I have a query need that requires multiple OR conditions, > > and, there must be > > a match in each condition for the query to provide a > > result. > > > > The search would be * (A or B) AND (C or D)* and the only > > valid results it > > could turn up are: > > > > A B > > A C > > B C > > B D > > > > Can anyone provide guidance as to how to implement this in > > the query string? > > It should be something like : q=+(A B) +(C D)&q.op=OR > > > > --001485f274b0e3451904879b0857--