Return-Path: X-Original-To: apmail-lucene-dev-archive@www.apache.org Delivered-To: apmail-lucene-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 86B2248EF for ; Thu, 19 May 2011 22:34:29 +0000 (UTC) Received: (qmail 76870 invoked by uid 500); 19 May 2011 22:34:28 -0000 Delivered-To: apmail-lucene-dev-archive@lucene.apache.org Received: (qmail 76816 invoked by uid 500); 19 May 2011 22:34:28 -0000 Mailing-List: contact dev-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@lucene.apache.org Delivered-To: mailing list dev@lucene.apache.org Received: (qmail 76808 invoked by uid 99); 19 May 2011 22:34:28 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 19 May 2011 22:34:28 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 19 May 2011 22:34:27 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 744FFD231B for ; Thu, 19 May 2011 22:33:47 +0000 (UTC) Date: Thu, 19 May 2011 22:33:47 +0000 (UTC) From: "Hoss Man (JIRA)" To: dev@lucene.apache.org Message-ID: <1372718310.28699.1305844427473.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <179409450.26121.1305796432497.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (LUCENE-3120) span query matches too many docs when two query terms are the same unless inOrder=true MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/LUCENE-3120?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13036540#comment-13036540 ] Hoss Man commented on LUCENE-3120: ---------------------------------- What we might want to consider is a new option on SpanNearQuery that would mandate that the spans not overlap. Paul Elschot described the general form of this idea once as an numeric option to specify a minimum distance between the subspans (so the default, as implemented today, for inOrder==true would be minPositionDistance=1; and the default for inOrder==false would be minPositionDistance=0) > span query matches too many docs when two query terms are the same unless inOrder=true > -------------------------------------------------------------------------------------- > > Key: LUCENE-3120 > URL: https://issues.apache.org/jira/browse/LUCENE-3120 > Project: Lucene - Java > Issue Type: Bug > Components: core/search > Reporter: Doron Cohen > Priority: Minor > Fix For: 3.2, 4.0 > > Attachments: LUCENE-3120.patch, LUCENE-3120.patch > > > spinoff of user list discussion - [SpanNearQuery - inOrder parameter|http://markmail.org/message/i4cstlwgjmlcfwlc]. > With 3 documents: > * "a b x c d" > * "a b b d" > * "a b x b y d" > Here are a few queries (the number in parenthesis indicates expected #hits): > These ones work *as expected*: > * (1) in-order, slop=0, "b", "x", "b" > * (1) in-order, slop=0, "b", "b" > * (2) in-order, slop=1, "b", "b" > These ones match *too many* hits: > * (1) any-order, slop=0, "b", "x", "b" > * (1) any-order, slop=1, "b", "x", "b" > * (1) any-order, slop=2, "b", "x", "b" > * (1) any-order, slop=3, "b", "x", "b" > These ones match *too many* hits as well: > * (1) any-order, slop=0, "b", "b" > * (2) any-order, slop=1, "b", "b" > Each of the above passes when using a phrase query (applying the slop, no in-order indication in phrase query). > This seems related to a known overlapping spans issue - [non-overlapping Span queries|http://markmail.org/message/7jxn5eysjagjwlon] - as indicated by Hoss, so we might decide to close this bug after all, but I would like to at least have the junit that exposes the behavior in JIRA. -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org For additional commands, e-mail: dev-help@lucene.apache.org