You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Jim Ferenczi (JIRA)" <ji...@apache.org> on 2019/01/28 10:22:00 UTC

[jira] [Updated] (LUCENE-8660) Include totalHitsThreshold when tracking total hits in TopDocsCollector

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

Jim Ferenczi updated LUCENE-8660:
---------------------------------
    Description: Today the total hits threshold in the top docs collector is not inclusive, this means that total hits are tracked up to totalHitsThreshold-1. After discussing with @jpountz we agreed that this is not intuitive to return a lower bound that is equal to totalHitsThreshold even if the count is accurate.  (was: Today the total hits threshold in the top docs collector is not inclusive, this means that total hits are tracked up to totalHitsThreshold-1. After discussing with @jpountz we agreed that this is not intuitive to return a lower bound that is equal to totalHitsThreshold even if the count is accurate.
This also means that a threshold of Integer.MAX_VALUE will always return accurate total hits even if the number of matching docs is equal to (Integer.MAX_VALUE-1).)

> Include totalHitsThreshold when tracking total hits in TopDocsCollector
> -----------------------------------------------------------------------
>
>                 Key: LUCENE-8660
>                 URL: https://issues.apache.org/jira/browse/LUCENE-8660
>             Project: Lucene - Core
>          Issue Type: Bug
>            Reporter: Jim Ferenczi
>            Priority: Minor
>         Attachments: LUCENE-8660.patch
>
>
> Today the total hits threshold in the top docs collector is not inclusive, this means that total hits are tracked up to totalHitsThreshold-1. After discussing with @jpountz we agreed that this is not intuitive to return a lower bound that is equal to totalHitsThreshold even if the count is accurate.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org