You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Adrien Grand (JIRA)" <ji...@apache.org> on 2018/02/12 18:27:00 UTC
[jira] [Resolved] (LUCENE-8127) BooleanQuery with
needsScores=false, rewriteNoScoring improvement
[ https://issues.apache.org/jira/browse/LUCENE-8127?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Adrien Grand resolved LUCENE-8127.
----------------------------------
Resolution: Fixed
Fix Version/s: 7.3
master (8.0)
Thanks Michael!
> BooleanQuery with needsScores=false, rewriteNoScoring improvement
> -----------------------------------------------------------------
>
> Key: LUCENE-8127
> URL: https://issues.apache.org/jira/browse/LUCENE-8127
> Project: Lucene - Core
> Issue Type: Improvement
> Reporter: Michael Braun
> Priority: Minor
> Fix For: master (8.0), 7.3
>
> Attachments: LUCENE-8127.patch
>
>
> In the case needsScores=false, createWeight calls rewriteNoScoring before creating a new BooleanWeight. This in all cases creates a new BooleanQuery, even when it's not necessary (aka there are no MUST clauses).
> The rewriteNoScoring method could check for something as simple as if (clauseSets.get(Occur.MUST).size() > 0) before creating a brand new BooleanQuery.
--
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