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

TopFieldCollector throws AIOOBE if numHits is 0

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 3.1, 4.0-ALPHA
    • core/search
    • None
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: