[
https://issues.apache.org/jira/browse/LUCENE-7713?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17568758#comment-17568758
]
Adrien Grand commented on LUCENE-7713:
--------------------------------------
Looking at the current code it looks like this optimization got added since I
opened this issue via {{TopFieldLeafCollector#collectedAllCompetitiveHits}}.
> Optimize TopFieldDocCollector for the sorted case
> -------------------------------------------------
>
> Key: LUCENE-7713
> URL: https://issues.apache.org/jira/browse/LUCENE-7713
> Project: Lucene - Core
> Issue Type: Improvement
> Reporter: Adrien Grand
> Priority: Minor
>
> When the sort order is a prefix of the index sort order,
> {{TopFieldDocCollector}} could skip reading doc values and comparing them
> against the bottom value after {{numHits}} documents have been collected, and
> just count matches.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]