Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-413

Cap offset + limit to maxDoc()

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.3
    • None
    • None

    Description

      Selecting a really large offset or limit causes negative array index exceptions, or causes way too much memory to be allocated. We can cap the last doc requested at maxDoc()

      Attachments

        1. lastDocRequested.patch
          3 kB
          Yonik Seeley

        Activity

          People

            Unassigned Unassigned
            yseeley@gmail.com Yonik Seeley
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: