Uploaded image for project: 'Jackrabbit Oak'
  1. Jackrabbit Oak
  2. OAK-2515

SolrQueryIndex blindly executes a 2nd query to check there are no more results

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.0.11, 1.1.6
    • 1.0.12, 1.1.7
    • None
    • None

    Description

      SolrQueryIndex#loadDocs doesn't take into account Solr's SolrDocumentList#getNumFound value to check if another query to get further results when the doc queue is empty is needed and blindly executes a second query.
      This is obviously wrong as it wastes time and resources doing an unneeded query to Solr.

      Attachments

        Activity

          People

            teofili Tommaso Teofili
            teofili Tommaso Teofili
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: