Chris M. Hostetter created SOLR-17940:
-----------------------------------------

             Summary: DelegatingCollector needs to filter Scorable depending on 
scoreMode
                 Key: SOLR-17940
                 URL: https://issues.apache.org/jira/browse/SOLR-17940
             Project: Solr
          Issue Type: Sub-task
            Reporter: Chris M. Hostetter
            Assignee: Chris M. Hostetter


SOLR-17917 uncovered a test failure when trying to upgrade to Lucene 10.3, 
which [was caused by a change in behavior 
|https://github.com/apache/lucene/issues/15239]in lucene that is the result of 
an optimization in scoring {{TermQuery}} instances.

The problem manifests in Solr because of how {{DelegatingCollector}} 
(subclasses) can change the {{scoreMode}} in a way which might be inconsistent 
with if/how the delegate Collector may use {{Scorable.setMinCompetitive}}.

While it remains to be seen if the change in behavior in Lucene 10.3 is 
_intentional_ or not, and/or if the docs for the {{ScoreMode}} are inaccurate, 
practically speaking  {{DelegatingCollector}} can be updated to be explicit 
about what should happen in these situations.
 



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to