[ https://issues.apache.org/jira/browse/LUCENE-7713?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17567202#comment-17567202 ]
Lu Xugang commented on LUCENE-7713: ----------------------------------- Hi [~jpountz], it seems like there is no need to do comparison or collecting by PriorityQueue when the search sort order is a prefix of the index sort order. This issue still existed, should we need to do this optimization? > 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: issues-unsubscr...@lucene.apache.org For additional commands, e-mail: issues-h...@lucene.apache.org