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

Fix NPE on TopFieldCollectors created with trackTotalHits=false

Details

    • Bug
    • Status: Closed
    • Blocker
    • Resolution: Fixed
    • None
    • 7.2, 8.0
    • None
    • None
    • New

    Description

      `TopFieldCollectors` are now able to early terminate queries if the index sort matches the search sort. The collector checks the index sort only if it was created with `trackTotalHits=false` but it fails with an NPE if the index is not sorted (index sort is null). We should let users set `trackTotalHits` to false even if the index is not sorted, in such case early termination is not applicable but the collection should work.

      Attachments

        1. LUCENE-8082.patch
          3 kB
          Jim Ferenczi

        Activity

          People

            Unassigned Unassigned
            jim.ferenczi Jim Ferenczi
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: