Tomas Eduardo Fernandez Lobbe created LUCENE-9342:
-----------------------------------------------------
Summary: 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
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: [email protected]
For additional commands, e-mail: [email protected]