Uploaded image for project: 'Lucene - Core'
  1. Lucene - Core
  2. LUCENE-2785

TopFieldCollector throws AIOOBE if numHits is 0

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.1, 4.0-ALPHA
    • Component/s: core/search
    • Labels:
      None
    • Lucene Fields:
      New

      Description

      See solr-user thread "ArrayIndexOutOfBoundsException for query with rows=0 and sort param".

      I think we should just create a null collector (only tallies up totalHits) if numHits is 0?

        Attachments

        1. LUCENE-2785.patch
          7 kB
          Michael McCandless

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              mikemccand Michael McCandless
            • Votes:
              1 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: