Return-Path: X-Original-To: apmail-lucene-java-user-archive@www.apache.org Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 5D39D9103 for ; Sat, 26 May 2012 03:53:55 +0000 (UTC) Received: (qmail 36691 invoked by uid 500); 26 May 2012 03:53:53 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 36275 invoked by uid 500); 26 May 2012 03:53:51 -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 36225 invoked by uid 99); 26 May 2012 03:53:49 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 26 May 2012 03:53:49 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of trejkaz@trypticon.org designates 209.85.212.182 as permitted sender) Received: from [209.85.212.182] (HELO mail-wi0-f182.google.com) (209.85.212.182) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 26 May 2012 03:53:40 +0000 Received: by wibhm6 with SMTP id hm6so74692wib.5 for ; Fri, 25 May 2012 20:53:19 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:x-gm-message-state; bh=dkX79bkE077pZSgmBzaxZGxX+4sVF55VBboeCrQnE+4=; b=V9BPNqQCTcKmM7rOycJu3OOLoi4LxbhHoHzs0+yUa2ppYTCPVaMvG5fRGS7XLtBMVd wNeBOXJB2KnciZMAjHlnV/kpIIgVR/lFAdFgkBqAkZKH7saZJ0MegJw7HZrfwGQG9kNb N2f7d+PLXqMneUaejv+qKQCSar+j5SEO+bnmasKRN+brNEq/eWgrEFkNUSNWUe+9jVoQ v+G9tA2pgK3SBzr334suuqjtF2ViX070fOTjGyo5+y95M50UJ/5hcXXu0+SkUeKtXwzd wOaxuiPACKI2ozn3UP6qnCZi0aSBlwicty9I1Ys1Z88GU5usCsXBdhGSOamk6hmUql7P n9/A== Received: by 10.216.225.23 with SMTP id y23mr582167wep.67.1338004399672; Fri, 25 May 2012 20:53:19 -0700 (PDT) Received: from mail-we0-f176.google.com (mail-we0-f176.google.com [74.125.82.176]) by mx.google.com with ESMTPS id fo7sm1446304wib.9.2012.05.25.20.53.18 (version=SSLv3 cipher=OTHER); Fri, 25 May 2012 20:53:19 -0700 (PDT) Received: by weyr3 with SMTP id r3so1379957wey.35 for ; Fri, 25 May 2012 20:53:18 -0700 (PDT) MIME-Version: 1.0 Received: by 10.180.85.129 with SMTP id h1mr994079wiz.2.1338004398469; Fri, 25 May 2012 20:53:18 -0700 (PDT) Received: by 10.180.99.231 with HTTP; Fri, 25 May 2012 20:53:18 -0700 (PDT) In-Reply-To: References: Date: Sat, 26 May 2012 13:53:18 +1000 Message-ID: Subject: Re: Approches/semantics for arbitrarily combining boolean and proximity search operators? From: Trejkaz To: java-user@lucene.apache.org Content-Type: text/plain; charset=UTF-8 X-Gm-Message-State: ALoCoQlj9RKcqJh6xf06RRvgr6Jj5+FtRLdv8EI84z2GRDsA5fKhUl9OJhMr3kmT86m/2gs6FeuH On Sat, May 26, 2012 at 12:07 PM, Chris Harris wrote: > > Alternatively, if you insist that query > > merger w/5 (medical and agreement) > > should match document "medical x x x merger x x x agreement" > > then you can propagate 2x the parent's slop value down to child queries. This is in fact exactly how we are approximating them. The selling point was this one: > * You get a nice 1-to-1 mapping from one subquery to one SpanQuery; > the output query trees look recognizably parallel to the input > queries, regardless of query complexity. The problem with the other "more accurate" transformations at the time were the explosion of query complexity once users started to combine them. Of course, a native SpanAndQuery would allow for a more elegant and precise 1-to-1 mapping. :) I even tried to modify one of the existing span queries to get similar behaviour, but it wasn't easy enough to get it right. TX --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org For additional commands, e-mail: java-user-help@lucene.apache.org