[ 
https://issues.apache.org/jira/browse/LUCENE-9342?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Tomas Eduardo Fernandez Lobbe resolved LUCENE-9342.
---------------------------------------------------
    Fix Version/s: 8.6
                   master (9.0)
       Resolution: Fixed

> Collector's totalHitsThreshold should not be lower than numHits
> ---------------------------------------------------------------
>
>                 Key: LUCENE-9342
>                 URL: https://issues.apache.org/jira/browse/LUCENE-9342
>             Project: Lucene - Core
>          Issue Type: Improvement
>            Reporter: Tomas Eduardo Fernandez Lobbe
>            Assignee: Tomas Eduardo Fernandez Lobbe
>            Priority: Minor
>             Fix For: master (9.0), 8.6
>
>
> 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}}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org
For additional commands, e-mail: issues-h...@lucene.apache.org

Reply via email to