Return-Path: Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: (qmail 24891 invoked from network); 5 Aug 2007 01:08:08 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 5 Aug 2007 01:08:08 -0000 Received: (qmail 76476 invoked by uid 500); 5 Aug 2007 01:08:02 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 76432 invoked by uid 500); 5 Aug 2007 01:08:02 -0000 Mailing-List: contact java-user-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: java-user@lucene.apache.org Delivered-To: mailing list java-user@lucene.apache.org Received: (qmail 76420 invoked by uid 99); 5 Aug 2007 01:08:02 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 04 Aug 2007 18:08:02 -0700 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=HTML_MESSAGE,SPF_PASS,WHOIS_MYPRIVREG X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of erickerickson@gmail.com designates 209.85.128.187 as permitted sender) Received: from [209.85.128.187] (HELO fk-out-0910.google.com) (209.85.128.187) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 05 Aug 2007 01:07:56 +0000 Received: by fk-out-0910.google.com with SMTP id z23so1062192fkz for ; Sat, 04 Aug 2007 18:07:34 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=oT2PsBsXkcz6waHwL7RIsjzt6j3gMQ3HF5/rdK4eSZVFhsWaeV5C6+GjWW3MVbkkN58mbViJ2wdg+p9Age/586yiQGi+Nu/uNpACKFgmn86XcJKPA0fR8OpvYfjscCcRGNui2XVdpobbHFAeNdI1M9fEVe7JkWB2U14ARLCpNx4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=XJsf0C0Th4NoX3Qi/n8AYBjhenIW8es/dPf5mQme0+7Lb9XzE4hmF8w+VVQtV4VBfYz7pSekzGD0j08lBqevdeuerDx/EzSAyCzK509tbbOjoc698jqsWgpcpXrBlcOsm0nYX446er/HTyuoPRDwJL2lVohE4GEM9GJXXR4G8cw= Received: by 10.82.116.15 with SMTP id o15mr4724054buc.1186276054311; Sat, 04 Aug 2007 18:07:34 -0700 (PDT) Received: by 10.82.190.14 with HTTP; Sat, 4 Aug 2007 18:07:34 -0700 (PDT) Message-ID: <359a92830708041807p75a75e78ic0ba57921cf5db59@mail.gmail.com> Date: Sat, 4 Aug 2007 21:07:34 -0400 From: "Erick Erickson" To: java-user@lucene.apache.org Subject: Re: Complex proximity clauses within Lucene QueryParser In-Reply-To: <12001229.post@talk.nabble.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_76326_17884528.1186276054043" References: <12001229.post@talk.nabble.com> X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_76326_17884528.1186276054043 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline I'm not sure the native syntax supports this idea, but I'm pretty sure you could construct it yourself with the appropriate SpanQuery sub-clauses. You'd have to deal with your own parsing of the input though. Also, check the SrndQuery class, I'm pretty this will work, but be aware that it has its own syntax that you have to get accustomed to. You'll probably need to search the archives for discussions of this. I know I had a lengthy exchange (see the thread "wildcard and span queries") that was enlightening. Best Erick On 8/4/07, tierecke wrote: > > > Hi, > > I got stuck with a complex proximity clause - and would be grateful to get > your help. > > Does Lucene allow, and if yes: what is the syntax? > > * Proximity between two phrases, for instance a within n1 words from b > which > is within n2 words from c? > * subclauses - for instance (a or b) within n words from (b* or c)? > * "a b" within n words from "c d"? > > that would help immensely. > > best regards from Amsterdam, > Nir. > -- > View this message in context: > http://www.nabble.com/Complex-proximity-clauses-within-Lucene-QueryParser-tf4218409.html#a12001229 > Sent from the Lucene - Java Users mailing list archive at Nabble.com. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org > For additional commands, e-mail: java-user-help@lucene.apache.org > > ------=_Part_76326_17884528.1186276054043--