lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jim Ferenczi (JIRA)" <>
Subject [jira] [Commented] (LUCENE-8788) Order LeafReaderContexts by Estimated Number Of Hits
Date Fri, 24 May 2019 10:34:00 GMT


Jim Ferenczi commented on LUCENE-8788:


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?


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:
>             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

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message