lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrew Gunther (Created) (JIRA)" <j...@apache.org>
Subject [jira] [Created] (SOLR-2958) SolrEntityProcessor prematurely ending when performing doQuery()
Date Fri, 09 Dec 2011 17:40:40 GMT
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


Mime
View raw message