You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@lucene.apache.org by "Tomas Eduardo Fernandez Lobbe (Jira)" <ji...@apache.org> on 2020/06/05 18:21:00 UTC

[jira] [Resolved] (LUCENE-9393) FunctionScoreQuery shouldn’t use TOP_DOCS for creating inner weight

     [ https://issues.apache.org/jira/browse/LUCENE-9393?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Tomas Eduardo Fernandez Lobbe resolved LUCENE-9393.
---------------------------------------------------
    Fix Version/s: 8.6
                   master (9.0)
       Resolution: Fixed

> FunctionScoreQuery shouldn’t use TOP_DOCS for creating inner weight
> -------------------------------------------------------------------
>
>                 Key: LUCENE-9393
>                 URL: https://issues.apache.org/jira/browse/LUCENE-9393
>             Project: Lucene - Core
>          Issue Type: Improvement
>            Reporter: Tomas Eduardo Fernandez Lobbe
>            Assignee: Tomas Eduardo Fernandez Lobbe
>            Priority: Minor
>             Fix For: master (9.0), 8.6
>
>          Time Spent: 40m
>  Remaining Estimate: 0h
>
> {{FunctionScoreQuery.createWeight}} creates the weight of the inner query using the {{scoreMode}} from it’s input parameter, however, FunctionScoreQuery can’t really use WAND algorithm, and the Scorer used will ignore calls to set competitive scores.  FunctionScoreQuery should just turn {{TOP_DOCS}} to {{COMPLETE}} before creating the inner query's weight.



--
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