[
https://issues.apache.org/jira/browse/LUCENE-8751?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16814338#comment-16814338
]
ASF subversion and git services commented on LUCENE-8751:
---------------------------------------------------------
Commit 81fe8144280d9ebe12f3020549e61094d4ac46c4 in lucene-solr's branch
refs/heads/jira/LUCENE-8738 from Jim Ferenczi
[ https://gitbox.apache.org/repos/asf?p=lucene-solr.git;h=81fe814 ]
LUCENE-8751: Weight#matches now use the ScorerSupplier to build scorers with a
lead cost of 1 (single document).
> Weight#matches should use the scorerSupplier to create scorers
> --------------------------------------------------------------
>
> Key: LUCENE-8751
> URL: https://issues.apache.org/jira/browse/LUCENE-8751
> Project: Lucene - Core
> Issue Type: Improvement
> Reporter: Jim Ferenczi
> Priority: Minor
> Fix For: 8.1, master (9.0)
>
> Attachments: LUCENE-8751.patch
>
>
> The default implementation for Weight#matches creates a scorer to check if
> the document matches. Since this API is per document it would be more
> efficient to create a ScorerSupplier and then create the scorer with a
> leadCost of 1.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]