You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Jim Ferenczi (JIRA)" <ji...@apache.org> on 2019/04/03 09:13:03 UTC
[jira] [Created] (LUCENE-8751) Weight#matches should use the
scorerSupplier to create scorers
Jim Ferenczi created LUCENE-8751:
------------------------------------
Summary: 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
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: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org