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

Include totalHitsThreshold when tracking total hits in TopDocsCollector

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 8.0
    • Component/s: None
    • Labels:
      None
    • Lucene Fields:
      New

      Description

      Today the total hits threshold in the top docs collector is not inclusive, this means that total hits are tracked up to totalHitsThreshold-1. After discussing with @jpountz we agreed that this is not intuitive to return a lower bound that is equal to totalHitsThreshold even if the count is accurate.

        Attachments

        1. LUCENE-8660.patch
          14 kB
          Jim Ferenczi
        2. LUCENE-8660.patch
          7 kB
          Jim Ferenczi

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: