Return-Path: Delivered-To: apmail-lucene-dev-archive@www.apache.org Received: (qmail 5823 invoked from network); 27 Sep 2010 04:08:58 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 27 Sep 2010 04:08:58 -0000 Received: (qmail 71941 invoked by uid 500); 27 Sep 2010 04:08:57 -0000 Delivered-To: apmail-lucene-dev-archive@lucene.apache.org Received: (qmail 71677 invoked by uid 500); 27 Sep 2010 04:08:55 -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 71670 invoked by uid 99); 27 Sep 2010 04:08:54 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 27 Sep 2010 04:08:54 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 27 Sep 2010 04:08:54 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o8R48Xv9023525 for ; Mon, 27 Sep 2010 04:08:34 GMT Message-ID: <1788262.411861285560513749.JavaMail.jira@thor> Date: Mon, 27 Sep 2010 00:08:33 -0400 (EDT) From: "Uwe Schindler (JIRA)" To: dev@lucene.apache.org Subject: [jira] Resolved: (LUCENE-2669) NumericRangeQuery.NumericRangeTermsEnum sometimes seeks backwards In-Reply-To: <25875664.408471285523912348.JavaMail.jira@thor> 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-2669?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Uwe Schindler resolved LUCENE-2669. ----------------------------------- Resolution: Fixed Committed revision: 1001582 Thanks Mike for catching this! > NumericRangeQuery.NumericRangeTermsEnum sometimes seeks backwards > ----------------------------------------------------------------- > > Key: LUCENE-2669 > URL: https://issues.apache.org/jira/browse/LUCENE-2669 > Project: Lucene - Java > Issue Type: Improvement > Components: Search > Reporter: Michael McCandless > Assignee: Uwe Schindler > Fix For: 4.0 > > Attachments: LUCENE-2669.patch, LUCENE-2669.patch, LUCENE-2669.patch > > > Subclasses of FilteredTermsEnum are "supposed to" seek forwards only (this gives better performance, typically). > However, we don't check for this, so I added an assert to do that (while digging into testing the SimpleText codec) and NumericRangeQuery trips the assert! > Other MTQs seem not to trip it. > I think I know what's happening -- say NRQ has term ranges a-c, e-f to seek to, but then while it's .next()'ing through the first range, the first term after c is f. At this point NRQ sees the range a-c is done, and then tries to seek to term e which is before f. Maybe NRQ's accept method should detect this case (where you've accidentally .next()'d into or possibly beyond the next one or more seek ranges)? -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org For additional commands, e-mail: dev-help@lucene.apache.org