Solr
  1. Solr
  2. SOLR-2958

SolrEntityProcessor prematurely ending when performing doQuery()

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 3.2
    • Fix Version/s: 3.6
    • Labels:
      None

      Description

      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; }
      1. SOLR-2958.patch
        3 kB
        Martijn van Groningen

        Activity

          People

          • Assignee:
            Unassigned
            Reporter:
            Andrew Gunther
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development