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 4D1C0689A for ; Fri, 24 Jun 2011 07:03:15 +0000 (UTC) Received: (qmail 81451 invoked by uid 500); 24 Jun 2011 07:03:14 -0000 Delivered-To: apmail-lucene-dev-archive@lucene.apache.org Received: (qmail 80132 invoked by uid 500); 24 Jun 2011 07:03:10 -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 79485 invoked by uid 99); 24 Jun 2011 07:03:08 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 24 Jun 2011 07:03:08 +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; Fri, 24 Jun 2011 07:03:07 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 72CA542CA40 for ; Fri, 24 Jun 2011 07:02:47 +0000 (UTC) Date: Fri, 24 Jun 2011 07:02:47 +0000 (UTC) From: "Paul Elschot (JIRA)" To: dev@lucene.apache.org Message-ID: <1349112807.35877.1308898967466.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <1141074226.29220.1308744767593.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (LUCENE-3229) Overlaped SpanNearQuery 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-3229?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13054270#comment-13054270 ] Paul Elschot commented on LUCENE-3229: -------------------------------------- Try and set 3.4 as fix version for this, 3.3 is already on the way out. It might also help to add some text for a changes.txt entry. > Overlaped SpanNearQuery > ----------------------- > > Key: LUCENE-3229 > URL: https://issues.apache.org/jira/browse/LUCENE-3229 > Project: Lucene - Java > Issue Type: Bug > Components: core/search > Affects Versions: 3.1 > Environment: Windows XP, Java 1.6 > Reporter: ludovic Boutros > Priority: Minor > Attachments: LUCENE-3229.patch, LUCENE-3229.patch, SpanOverlap.diff, SpanOverlap2.diff, SpanOverlapTestUnit.diff > > > While using Span queries I think I've found a little bug. > With a document like this (from the TestNearSpansOrdered unit test) : > "w1 w2 w3 w4 w5" > If I try to search for this span query : > spanNear([spanNear([field:w3, field:w5], 1, true), field:w4], 0, true) > the above document is returned and I think it should not because 'w4' is not after 'w5'. > The 2 spans are not ordered, because there is an overlap. > I will add a test patch in the TestNearSpansOrdered unit test. > I will add a patch to solve this issue too. > Basicaly it modifies the two docSpansOrdered functions to make sure that the spans does not overlap. -- 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