You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@lucene.apache.org by "Tomas Eduardo Fernandez Lobbe (Jira)" <ji...@apache.org> on 2020/04/22 22:47:00 UTC
[jira] [Created] (LUCENE-9342) Collector's totalHitsThreshold
should not be lower than numHits
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: issues-unsubscribe@lucene.apache.org
For additional commands, e-mail: issues-help@lucene.apache.org