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

Collector's totalHitsThreshold should not be lower than numHits

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: main (9.0), 8.6
    • Component/s: None
    • Labels:
      None
    • Lucene Fields:
      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

            • Assignee:
              tflobbe Tomas Eduardo Fernandez Lobbe
              Reporter:
              tflobbe Tomas Eduardo Fernandez Lobbe

              Dates

              • Created:
                Updated:
                Resolved:

                Issue deployment