[ https://issues.apache.org/jira/browse/LUCENE-8788?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16847455#comment-16847455 ]
Jim Ferenczi commented on LUCENE-8788: -------------------------------------- {quote} I like the idea [~jim.ferenczi] proposed. I can open a Jira for that and work on a patch for it as well, unless Jim wants to do it himself? {quote} Something is needed for the search side and this issue is the right place to add such functionalities. I wonder if we need an issue for the merge side though since it's already possible to change the order of segments in a custom FilterMergePolicy. I tried to do it in a POC and the change is trivial so I am not sure that we need to do anything in core. > Order LeafReaderContexts by Estimated Number Of Hits > ---------------------------------------------------- > > Key: LUCENE-8788 > URL: https://issues.apache.org/jira/browse/LUCENE-8788 > Project: Lucene - Core > Issue Type: Improvement > Reporter: Atri Sharma > Priority: Major > > We offer no guarantee on the order in which an IndexSearcher will look at > segments during a search operation. This can be improved for use cases where > an engine using Lucene invokes early termination and uses the partially > collected hits. A better model would be if we sorted segments by the > estimated number of hits, thus increasing the probability of the overall > relevance of the returned partial results. -- This message was sent by Atlassian JIRA (v7.6.3#76005) --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org