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

Collector's totalHitsThreshold should not be lower than numHits

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 9.0, 8.6
    • None
    • None
    • New

    Description

      While looking at SOLR-13289 I noticed this situation. If I create a collector with numHits greater than totalHitsThreshold, and the number of hits in the query is somewhere between those two numbers, the collector’s totalHitRelation will be TotalHits.Relation.GREATER_THAN_OR_EQUAL_TO, however the count will be accurate in this case. While this doesn't violate the current contract, the totalHitRelation could be changed to TotalHits.Relation.EQUAL_TO

      Attachments

        Activity

          People

            tflobbe Tomas Eduardo Fernandez Lobbe
            tflobbe Tomas Eduardo Fernandez Lobbe
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: