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 3F5697F22 for ; Fri, 9 Dec 2011 18:29:04 +0000 (UTC) Received: (qmail 57016 invoked by uid 500); 9 Dec 2011 18:29:02 -0000 Delivered-To: apmail-lucene-dev-archive@lucene.apache.org Received: (qmail 56965 invoked by uid 500); 9 Dec 2011 18:29:02 -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 56958 invoked by uid 99); 9 Dec 2011 18:29:02 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 09 Dec 2011 18:29:02 +0000 X-ASF-Spam-Status: No, hits=-2001.2 required=5.0 tests=ALL_TRUSTED,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, 09 Dec 2011 18:29:00 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 0486B10A668 for ; Fri, 9 Dec 2011 18:28:40 +0000 (UTC) Date: Fri, 9 Dec 2011 18:28:40 +0000 (UTC) From: "Martijn van Groningen (Commented) (JIRA)" To: dev@lucene.apache.org Message-ID: <124398989.59314.1323455320020.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <748856958.59101.1323452440298.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (SOLR-2958) SolrEntityProcessor prematurely ending when performing doQuery() MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/SOLR-2958?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13166401#comment-13166401 ] Martijn van Groningen commented on SOLR-2958: --------------------------------------------- Does this affect the code committed with SOLR-1499? You set the affect versions to 3.2, so I'm not sure. > SolrEntityProcessor prematurely ending when performing doQuery() > ---------------------------------------------------------------- > > Key: SOLR-2958 > URL: https://issues.apache.org/jira/browse/SOLR-2958 > Project: Solr > Issue Type: Bug > Components: contrib - DataImportHandler > Affects Versions: 3.2 > Reporter: Andrew Gunther > > from my memory... > doQuery() method is incorrectly setting finished = true; during the condition below.. > Scenario: > numFound=720 > rows=500 > error:last 220 records are not returned. > Replacing query.getStart() (which is essentially 500 + 500 > 720 => TRUE) with 1 has worked for us. > if (context.isRootEntity()) { > // only check the numFound end condition if we're the root entity, otherwise the query could be changing each time > // if (currentRow + query.getStart() > numFound) { > if ((currentRow + 1 > numFound) && (numFound > 0)) { > finished = true; > return; > } -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa 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