You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@lucene.apache.org by "Mayya Sharipova (Jira)" <ji...@apache.org> on 2021/11/05 16:38:00 UTC

[jira] [Created] (LUCENE-10224) MultiCollector to control skipping docs on field sort

Mayya Sharipova created LUCENE-10224:
----------------------------------------

             Summary: MultiCollector to control skipping docs on field sort
                 Key: LUCENE-10224
                 URL: https://issues.apache.org/jira/browse/LUCENE-10224
             Project: Lucene - Core
          Issue Type: Improvement
            Reporter: Mayya Sharipova


Currently MultiCollector::MultiLeafCollector doesn't implement competitiveIterator;  so it doesn't have an ability to skip non-competitive documents on field sort.  Check when it is useful to have this ability : 1) e.g. when MultiCollector contains only a single sub-collector 2) when multiple sub-collectors have the same sort fields

Another thing we need to do  is to disable skipping functionality of all sub-collectors if the combined scoreMode of MultiCollectors is scoreMode.isExhaustive() == true. Because currently is one of sub-collectors is TopFieldCollector and its scoreMode is not exhaustive, it will update its competitiveIterator when its hits threshold is reached, even though we will never end up using this competitiveIterator, so useless work here.

Relates to https://issues.apache.org/jira/browse/LUCENE-9280



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

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