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 63F7217BDA for ; Sun, 12 Apr 2015 14:35:13 +0000 (UTC) Received: (qmail 63526 invoked by uid 500); 12 Apr 2015 14:35:12 -0000 Delivered-To: apmail-lucene-dev-archive@lucene.apache.org Received: (qmail 63458 invoked by uid 500); 12 Apr 2015 14:35:12 -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 63448 invoked by uid 99); 12 Apr 2015 14:35:12 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 12 Apr 2015 14:35:12 +0000 Date: Sun, 12 Apr 2015 14:35:12 +0000 (UTC) From: "Robert Muir (JIRA)" To: dev@lucene.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (LUCENE-6418) NearSpans[Payload]Ordered sometimes returns -1 for nextStartPosition() MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Robert Muir created LUCENE-6418: ----------------------------------- Summary: NearSpans[Payload]Ordered sometimes returns -1 for nextStartPosition() Key: LUCENE-6418 URL: https://issues.apache.org/jira/browse/LUCENE-6418 Project: Lucene - Core Issue Type: Bug Reporter: Robert Muir It happens in both impls, so I think the problem is in NearSpansPayloadOrdered. Maybe atFirstInCurrentDoc gets set without matchStart getting set? Can be triggered more generally in tests like this: {code} @Override public int nextStartPosition() throws IOException { if (atFirstInCurrentDoc) { atFirstInCurrentDoc = false; assert matchStart >= 0; // add this assert return matchStart; } {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org For additional commands, e-mail: dev-help@lucene.apache.org